/* ==========================================================================
   1. VARIABLES & FONTS
   ========================================================================== */
:root {
  --primary-color: #e9504c;
  --text-color: #000000;
  --white-color: #ffffff;
  --deep-green-color: #B5F06D;
  --light-green-color: #E3FFDC;
  --light-yellow-color: #FCF6CC;
  --deep-yellow-color: #FFEB6C;
  --light-purple-color: #E3EAFF;
  --deep-purple-color: #C0B7FF;

  --text-muted-color: #444444;
  --overlay-color: rgba(0, 0, 0, 0.65);
  --footer-border-color: rgba(255, 255, 255, 0.15);

  --border-color: #cccccc;
  --border-divider-color: #e9ecef;
  --bg-muted: #f8f9fa;

  --font-size-xl: 5rem;
  --font-size-lg: 3rem;
  --font-size-md: 2rem;
  --font-size-sm: 1.2rem;
  --font-size-xs: 1rem;
  --font-size-xxs: 0.8rem;
  --font-size-xxxs: 0.5rem;

  --border-radius: 2rem;
  --light-border-radius: 0.5rem;
  --button-width: 100%;
  --max-width-btn: 250px;
  --scroll-btn-size: 50px;
  --scroll-btn-offset: 20px;
  --bottom-nav-height: 64px;

  --border-thin: 0.5px solid var(--border-color);
  --border-thick: 2px solid var(--primary-color);

  --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);

  --primary-font-family: 'Gellix', sans-serif;

  --nav-height: 82px;

  --letter-spacing-tight: 0.03em;
  --letter-spacing-wide: 0.08em;

  --transition-fast: 0.2s;
  --transition-base: 0.25s;
  --transition-slow: 0.3s;
  --transition-collapse: 0.55s;

  --num-size-sm: 28px;
  --num-size-md: 32px;

  --media-height-md: 200px;
  --card-image-width: 350px;
  --card-min-height: 220px;
  --gallery-thumb-height: 70px;
  --gallery-thumb-width: 100px;
  --gallery-main-height: 400px;
  --footer-logo-max-width: 480px;
  --fade-height: 180px;

  --z-scroll-btn: 1000;
  --z-nav: 1030;
  --z-dropdown: 1050;
  --z-badge: 2;
}

@font-face {
  font-family: 'Gellix';
  src: url('/font/Gellix-Medium.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gellix';
  src: url('/font/Gellix-ExtraBold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. BASE / GLOBAL STYLES
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--primary-font-family);
  color: var(--text-color);
  font-weight: normal;
  padding-top: var(--nav-height) !important;
  background-color: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--primary-font-family);
  font-weight: bold;
  color: var(--primary-color);
}

h1 {
  font-size: var(--font-size-xl);
}

h2 {
  font-size: var(--font-size-lg);
}

h3 {
  font-size: var(--font-size-md);
}

strong {
  color: var(--primary-color);
}

p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container {
  padding-left: calc(1.5rem + env(safe-area-inset-left));
  padding-right: calc(1.5rem + env(safe-area-inset-right));
}

.bg-light-yellow {
  background-color: var(--light-yellow-color);
}

.bg-white {
  background-color: var(--white-color);
}

/* ==========================================================================
   4. NAVIGATION
   ========================================================================== */
#mainNav {
  position: fixed;
  top: 0;
  z-index: var(--z-nav);
  box-shadow: var(--box-shadow);
  font-family: var(--primary-font-family);
  font-weight: normal;
  background-color: var(--primary-color);
}

.navbar-nav .nav-link {
  transition: background-color var(--transition-fast) ease;
  border-radius: var(--border-radius) !important;
}

.navbar-nav .nav-link:focus-visible {
  background-color: var(--white-color);
  color: var(--primary-color) !important;
}

@media (hover: hover) and (pointer: fine) {
  .navbar-nav .nav-link:hover {
    background-color: var(--white-color);
    color: var(--primary-color) !important;
  }
}

.custom-toggler-icon {
  display: inline-block;
  width: 20px;
  height: 14px;
  position: relative;
  vertical-align: middle;
  margin-left: 6px;
}

.custom-toggler-icon span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--white-color);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: transform var(--transition-base) ease-in-out, opacity var(--transition-base) ease-in-out, top var(--transition-base) ease-in-out;
}

.custom-toggler-icon span:nth-child(1) {
  top: 0px;
}

.custom-toggler-icon span:nth-child(2) {
  top: 6px;
}

.custom-toggler-icon span:nth-child(3) {
  top: 12px;
}

.navbar-toggler:not(.collapsed) .custom-toggler-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(135deg);
}

.navbar-toggler:not(.collapsed) .custom-toggler-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.navbar-toggler:not(.collapsed) .custom-toggler-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-135deg);
}

@media (max-width: 767.98px) {
  .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-blog-link {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--white-color);
  text-decoration: none;
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-tight);
  padding: 12px 0;
}

@media (max-width: 1199.98px) {
  .mobile-blog-link {
    display: inline-flex;
  }

  .navbar-toggler,
  #navbarResponsive {
    display: none !important;
  }
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  min-height: var(--bottom-nav-height);
  background-color: var(--primary-color);
  box-shadow: var(--box-shadow);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  text-decoration: none;
  color: var(--white-color);
  font-size: var(--font-size-xxs);
  text-align: center;
}

.mobile-bottom-nav__item i {
  font-size: 1.15rem;
  color: var(--white-color);
}

.mobile-bottom-nav__item.is-active,
.mobile-bottom-nav__item.is-active i {
  color: var(--deep-yellow-color);
}

@media (min-width: 1200px) {
  .mobile-bottom-nav {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  body {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  }

  #scrollTopBtn {
    display: none !important;
  }
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: var(--border-radius);
  white-space: nowrap;
}

.btn-danger,
.btn-danger:hover,
.btn-danger:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}

.btn-danger-sec,
.btn-danger-sec:hover,
.btn-danger-sec:focus {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-social-red,
.btn-social-red:focus {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-social-red:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}

.btn-check:focus+.btn,
.btn:focus,
.btn-danger:active:focus,
.btn-outline-light:active:focus {
  outline: 0;
  box-shadow: none;
}

.btn-next-section {
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

@media (hover: hover) {
  .btn-next-section:hover {
    transform: translateY(4px);
    box-shadow: var(--box-shadow);
  }
}

.btn-next-section:active {
  transform: translateY(4px);
  box-shadow: var(--box-shadow);
}

.copy-link-btn:active,
.copy-link-btn:hover,
.copy-link-btn:focus {
  color: var(--white-color) !important;
  background-color: transparent !important;
  border-color: var(--white-color) !important;
}

@media (hover: hover) and (pointer: fine) {
  .copy-link-btn:hover {
    color: var(--primary-color) !important;
    background-color: var(--white-color) !important;
    border-color: var(--white-color) !important;
  }
}

.copy-link-btn.copy-link-btn--success,
.copy-link-btn.copy-link-btn--success:active,
.copy-link-btn.copy-link-btn--success:hover,
.copy-link-btn.copy-link-btn--success:focus {
  color: var(--primary-color) !important;
  background-color: var(--white-color) !important;
  border-color: var(--white-color) !important;
}

#scrollTopBtn {
  position: fixed;
  right: var(--scroll-btn-offset);
  bottom: var(--scroll-btn-offset);
  z-index: var(--z-scroll-btn);
  width: var(--scroll-btn-size);
  height: var(--scroll-btn-size);
  font-size: var(--font-size-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  color: var(--white-color);
  box-shadow: var(--box-shadow);
  transition: background-color var(--transition-slow) ease, color var(--transition-slow) ease;
}

.btn-scroll,
.btn-scroll:hover,
.btn-scroll:focus {
  background-color: var(--primary-color);
  color: var(--white-color);
}

#scrollTopBtn:hover {
  background-color: var(--primary-color);
}

/* ==========================================================================
   6. FORMS & SEARCH
   ========================================================================== */
.form-control {
  height: 70px;
  font-size: var(--font-size-sm);
}

.search-input-custom {
  border: var(--border-thick);
}

#clearSearchBtn {
  display: none;
  z-index: var(--z-dropdown);
  padding: 0.5rem 2rem;
}

#customSuggestions {
  display: none;
  z-index: var(--z-dropdown);
  position: absolute;
  top: 100%;
  left: 0.75rem;
  right: 0.75rem;
  width: auto;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 0.25rem;
  box-sizing: border-box;
}

#noResultsMessage,
#searchSuccessMessage {
  display: none;
}

#matchedStreetName {
  background-color: var(--deep-yellow-color);
  border-radius: 0.25rem;
  padding: 0 6px;
  color: var(--primary-color);
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.street-badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  padding: 3px 10px;
  border-radius: var(--border-radius);
  background-color: var(--white-color);
  color: var(--text-color);
  cursor: pointer;
}

.active-badge {
  background-color: var(--white-color);
  color: var(--text-color);
}

/* ==========================================================================
   7. CARDS
   ========================================================================== */
.card {
  height: auto;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-color);
  border: none;
  border-radius: var(--light-border-radius);
}

.card,
.card p,
.card .card-link {
  color: var(--white-color);
}

.card p strong {
  font-weight: 700;
  color: var(--white-color);
}

.card h3 {
  color: var(--deep-yellow-color);
}

.card.p-4 {
  padding: 2rem !important;
}

@media (max-width: 991.98px) {
  .card.p-4 {
    padding: 1.25rem !important;
  }
}

.card-link {
  color: var(--white-color);
  text-decoration: none;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-tight);
}

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

.card-link+.card-link {
  margin-left: 0 !important;
}

.card .card-link:hover {
  color: var(--light-yellow-color);
}

.num {
  flex-shrink: 0;
  width: var(--num-size-md);
  height: var(--num-size-md);
  border-radius: var(--border-radius);
  background-color: var(--deep-yellow-color);
  color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: var(--num-size-md);
}

@media (min-width: 992px) {
  .num {
    align-self: center;
  }
}

.card--horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: var(--card-min-height);
}

@media (max-width: 991.98px) {
  .card--horizontal {
    flex-direction: column;
  }
}

.card--horizontal .card__image-wrap {
  flex: 0 0 var(--card-image-width);
  width: var(--card-image-width);
  min-height: calc(var(--card-image-width) / 4 * 3);
  overflow: hidden;
  position: relative;
}

@media (max-width: 991.98px) {
  .card--horizontal .card__image-wrap {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

.card--horizontal .card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card__image {
  height: var(--media-height-md);
  object-fit: cover;
}

.card--horizontal .card__body {
  flex: 1;
  min-width: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .card--horizontal .card__body {
    padding: 1.25rem 1.25rem;
  }
}

.card--horizontal .card__body h3 {
  margin-bottom: 0.75rem;
}

.card--horizontal .card__body p {
  margin-bottom: 0;
  flex-grow: 1;
}

/* ==========================================================================
   8. STATUS & ILLUSTRATIVE BADGES
   ========================================================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--font-size-xs);
  padding: 3px 10px;
  border-radius: var(--border-radius);
  z-index: var(--z-badge);
}

.status-badge--done {
  background-color: var(--deep-green-color);
  color: var(--text-color);
}

.status-badge--progress {
  background-color: var(--deep-yellow-color);
  color: var(--text-color);
}

.illustrative-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-xxs);
  padding: 3px 10px;
  border-radius: var(--border-radius);
  background-color: rgba(0, 0, 0, 0.55);
  color: var(--white-color);
  z-index: var(--z-badge);
  white-space: nowrap;
}

/* ==========================================================================
   9. HERO SECTION
   ========================================================================== */
.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25em;
  font-size: clamp(2.5rem, 5vw + 1.2rem, 5rem);
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

@media (min-width: 1200px) {
  .hero-title {
    justify-content: flex-start;
  }
}

.hero-subtitle {
  font-family: var(--primary-font-family);
  font-weight: bold;
  color: var(--primary-color);
  font-size: clamp(1.3rem, 1.6vw + 0.9rem, 2rem);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.img-container {
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  aspect-ratio: 1584 / 1368;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .img-container {
    max-width: 540px;
    margin: 0 auto;
  }
}

@media (max-width: 1199.98px) {
  .img-container {
    overflow: hidden;
    position: relative;
    background-position: top center;
  }

  .img-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--white-color), rgba(0, 0, 0, 0) 50%);
  }
}

/* ==========================================================================
   10. BIO ROWS (sekcia Spoznajte ma)
   ========================================================================== */
.bio-row {
  margin-bottom: 3rem;
}

.bio-row:last-child {
  margin-bottom: 0;
}

.bio-row h3 {
  margin: 0 0 1rem;
}

.bio-label {
  color: var(--text-color);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.bio-row-media {
  display: grid;
  grid-template-columns: minmax(0, 500px) 1fr;
  gap: 2rem;
  align-items: start;
}

.bio-row-reverse .bio-row-media {
  grid-template-columns: 1fr minmax(0, 500px);
}

@media (max-width: 1199.98px) {

  .bio-row-media,
  .bio-row-reverse .bio-row-media {
    grid-template-columns: 1fr;
  }

  .bio-photo-block {
    order: 1;
    max-width: 100%;
  }

  .bio-text {
    order: 2;
  }
}

.bio-row-inner-card {
  background-color: var(--white-color);
  border-radius: var(--light-border-radius);
  padding: 2rem;
  border: solid 1px var(--light-purple-color);
}

@media (max-width: 575.98px) {
  .bio-row-inner-card {
    padding: 1.5rem;
  }
}

.bio-numbered-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bio-numbered-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--text-muted-color);
}

.bio-num {
  flex-shrink: 0;
  width: var(--num-size-sm);
  height: var(--num-size-sm);
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  color: var(--white-color);
  font-size: var(--font-size-xs);
  font-weight: 700;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.bio-photo-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--light-border-radius);
  overflow: hidden;
}

.bio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-photo-caption {
  font-size: var(--font-size-xxs);
  color: var(--text-muted-color);
  margin: 8px 0 0;
  line-height: 1.4;
}

/* ==========================================================================
   11. PARTNER BAR
   ========================================================================== */
.partner-bar {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.partner-bar-logo-img {
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.partner-bar-slogan {
  font-size: var(--font-size-sm);
  text-align: center;
  white-space: normal;
}

@media (min-width: 992px) {
  .partner-bar-logo-img {
    height: 90px;
  }

  .partner-bar-slogan {
    white-space: nowrap;
  }
}

/* ==========================================================================
   12. COLLAPSIBLE SECTIONS ("Zobraziť viac")
   ========================================================================== */
.section-collapsible {
  position: relative;
  overflow: hidden;
  transition: max-height var(--transition-collapse) cubic-bezier(0.4, 0, 0.2, 1);
}

.section-collapsible__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--fade-height);
  pointer-events: none;
  transition: opacity var(--transition-slow) ease;
}

.section-collapsible.is-expanded .section-collapsible__fade {
  opacity: 0;
  pointer-events: none;
}

.bg-light-yellow .section-collapsible__fade {
  background: linear-gradient(to top, var(--light-yellow-color) 0%, transparent 100%);
}

.page-section:not(.bg-light-yellow) .section-collapsible__fade {
  background: linear-gradient(to top, var(--white-color) 0%, transparent 100%);
}

@media (min-width: 1200px) {
  .section-collapsible {
    overflow: visible;
    max-height: none !important;
  }

  .section-collapsible__fade {
    display: none;
  }

  .section-expand-btn {
    display: none !important;
  }
}

/* ==========================================================================
   13. MODAL & GALLERY (fotky vo Výsledkoch)
   ========================================================================== */
.modal-content {
  border: none;
}

.modal-header {
  border-bottom: var(--border-thin);
}

.gallery-main__img {
  max-height: var(--gallery-main-height);
  object-fit: contain;
}

.gallery-thumb {
  height: var(--gallery-thumb-height);
  width: var(--gallery-thumb-width);
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: var(--border-thick);
  transition: opacity var(--transition-fast) ease, border-color var(--transition-fast) ease;
}

.gallery-thumb--active,
.gallery-thumb[data-active="true"] {
  opacity: 1;
  border-color: var(--primary-color);
}

.gallery-thumb:hover {
  opacity: 0.85;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.footer-coalition {
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-border-color);
  margin-top: 0.5rem;
}

.footer-coalition__logo {
  width: 100%;
  max-width: var(--footer-logo-max-width);
  height: auto;
  display: block;
  margin: 0 auto;
  mix-blend-mode: screen;
}

/* ==========================================================================
   15. THIRD-PARTY OVERRIDES
   ========================================================================== */
#CookiebotWidget {
  visibility: hidden !important;
}