@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;600&display=swap');

/* =========================================================
   0) PALETĂ / VARIABILE
   ========================================================= */
:root {
  --primary: #003e4a;
  --primary-dark: #012f38;

  --bg: #ffffff;
  --page-bg: rgba(0, 62, 74, 0.05);
  --text: #121212;

  --navbar-h: 76px;

  --footer-pattern: repeating-linear-gradient(
    135deg,
    rgba(0, 62, 74, 0.15) 0,
    rgba(0, 62, 74, 0.15) 1.5px,
    transparent 1.5px,
    transparent 6px
  );
}

html,
body {
  font-family: 'Segoe UI', Arial, 'Liberation Sans', 'DejaVu Sans', 'Noto Sans', sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}

body {
  padding-top: var(--navbar-h);
  background-color: var(--page-bg) !important;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
}

body::-webkit-scrollbar {
  display: none;
}

body.home-page .hero-shell {
  margin-top: 0;
}

a {
  color: var(--primary);
  transition: color 0.3s ease;
}
a:hover {
  color: #002a33;
}

main {
  flex: 1 0 auto;
}

.main-content {
  position: static !important;
  overflow: visible !important;
}

.page-shell {
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 1400px) {
  .page-shell {
    padding-left: calc(100vw / 12);
    padding-right: calc(100vw / 12);
  }
}

.hero-shell {
  background-color: #0b1624;
  background-position: center 45%;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0;
  padding: 3rem 3rem 5rem;
  margin-bottom: 2rem;
  min-height: 460px;
  display: flex;
  gap: 2rem;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  color: #ffffff;
}

.hero-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 14, 30, 0.55), rgba(0, 42, 64, 0.55) 60%);
  z-index: 1;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 60%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-content h1 {
  line-height: 1.1;
}

.hero-subtitle {
  font-family: 'Dancing Script', 'Brush Script MT', cursive;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-actions .btn {
  min-width: 200px;
}

.hero-shell .btn {
  color: #fff;
  text-decoration: none;
}

.hero-shell .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}
.hero-shell .btn-outline-light:hover,
.hero-shell .btn-outline-light:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.hero-shell .btn-outline-primary {
  border-color: #fff;
  color: #fff;
}
.hero-shell .btn-outline-primary:hover,
.hero-shell .btn-outline-primary:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.hero-metrics {
  margin-top: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-metrics li {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.25;
  margin: 0;
}

.hero-panel {
  transform: translateY(0);
  background: rgba(7, 22, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-panel a {
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}
.hero-panel a:hover {
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
}

.hero-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.hero-social-link i {
  font-size: 1.1rem;
}

.hero-panel:hover {
  transform: translateY(-1.5rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-panel-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}
.hero-panel-head h3 {
  white-space: nowrap;
}
.hero-panel-head h3,
.hero-panel-head p,
.hero-panel-body {
  color: rgba(255, 255, 255, 0.95);
}

.text-white-70 {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 991.98px) {
  .hero-shell {
    background-attachment: scroll;
    flex-direction: column;
    padding: 2rem;
    margin-bottom: 0;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-panel {
    width: 100%;
    transform: none;
    margin: 1.25rem 0 0;
    position: static;
  }
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-heading .display-4,
.about-title,
.section-title,
.section-heading-title {
  font-size: clamp(2.1rem, 2.8vw + 0.5rem, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.section-heading .display-5 {
  font-size: clamp(1.7rem, 2vw + 0.75rem, 2.3rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin: 0;
}

.section-heading .display-6 {
  font-size: clamp(1.5rem, 1.9vw + 0.5rem, 2rem);
  margin: 0;
}

.directions-shell {
  padding: 6rem 1rem;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.direction-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 1.25rem;
  padding: 1.75rem;
  min-height: 220px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}
.direction-card:hover {
  transform: translateY(-1.5rem);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.direction-icon {
  width: 58px;
  height: 58px;
  border-radius: 1rem;
  border: 1px solid rgba(0, 62, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
}

.highlights-shell .highlight-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  min-height: 220px;
  border: 1px solid rgba(0, 62, 74, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}
.highlights-shell .highlight-card h4 {
  font-weight: 600;
}

.home-posts-shell {
  padding: 0 1rem;
}

.home-post-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 62, 74, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-post-card:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.home-post-image-link {
  display: block;
}

.home-post-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
}

.home-post-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}

.home-post-card-body {
  padding: 1.5rem;
  min-height: 280px;
}

.home-post-meta a,
.home-post-title a {
  color: var(--primary);
}

.home-post-title a:hover {
  color: var(--primary);
  opacity: 0.9;
}

.home-post-excerpt {
  line-height: 1.7;
  margin-bottom: 0;
}

.eyebrow {
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.navbar {
  border-bottom: var(--primary) 1px solid;
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #ffffff;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  box-shadow: none !important;
  position: sticky;
}

.left-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-nav {
  border-left: 1px solid rgba(0, 62, 74, 0.25);
  border-right: 1px solid rgba(0, 62, 74, 0.25);
  padding: 0 1rem;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.logo-img:hover {
  transform: scale(1.05);
}

.navbar-main-menu {
  gap: 1rem;
  align-items: center;
}

.nav-link {
  color: #374151 !important;
  font-weight: 500;
  padding: 0.5rem 0 !important;
  position: relative;
  transition: all 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary), #00ffff);
  transition: width 0.3s ease;
  border-radius: 0.5px;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
  font-style: italic;
}

@media (min-width: 992px) {
  .navbar-main-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.navbar-toggler {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0.5rem;
}
.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23003e4a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.2em;
  height: 1.2em;
}

.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  line-height: 1;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  background: none;
  vertical-align: middle;
}

.user-avatar-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  transition: all 0.3s ease;
  border: 2px solid #dee2e6;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.user-avatar-icon:hover {
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 62, 74, 0.15);
}

.user-avatar-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.user-avatar-icon,
.user-avatar-icon:hover,
.user-avatar-icon:focus {
  text-decoration: none !important;
}
.user-avatar-icon .avatar-initials {
  text-decoration: none !important;
}

.user-name {
  color: #374151;
  font-weight: 500;
  min-height: 1.5rem;
  transition: all 0.3s ease;
}
.user-name:hover {
  font-style: italic;
  color: var(--primary);
}

@media (max-width: 991.98px) {
  .nav-link::after {
    display: none;
  }
  .nav-link:hover,
  .nav-link.active {
    background-color: rgba(0, 62, 74, 0.08);
    border-radius: 0;
    font-style: normal;
  }

  .logo-img {
    height: 40px;
    max-width: 150px;
  }
}

.offcanvas {
  width: 340px;
  max-width: 92vw;
  background-color: #ffffff;
}

.offcanvas-header {
  padding: 1rem 1.25rem;
}
.offcanvas-title {
  font-weight: 600;
  color: var(--primary);
}
.offcanvas-body {
  padding: 1.25rem;
}

.offcanvas .nav-link {
  text-align: left;
  padding: 0.75rem 0.75rem !important;
  font-weight: 500;
  color: #374151 !important;
  border-radius: 0.5rem;
  transition: background-color 0.25s ease, color 0.25s ease;
  font-style: normal;
}
.offcanvas .nav-link:hover {
  background-color: rgba(0, 62, 74, 0.08);
  color: var(--primary) !important;
}
.offcanvas .nav-link.active {
  background-color: rgba(0, 62, 74, 0.15);
  color: var(--primary) !important;
  font-weight: 700;
}

body.offcanvas-open {
  overflow: hidden !important;
}

.about-section .divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #00ffff);
  border-radius: 2px;
}

.about-text-card,
.about-image-card {
  border: 1px solid #dee2e6 !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 62, 74, 0.08) !important;
  transition: all 0.3s ease;
  overflow: hidden;
}
.about-text-card:hover,
.about-image-card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 62, 74, 0.12) !important;
}

.about-image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.geo-map-card {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 62, 74, 0.08);
  overflow: hidden;
  background-color: #fff;
  margin-bottom: 1rem;
}

.geo-map-card img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border: none;
  border-radius: 0;
}

.geo-legend-card {
  background-color: #fff;
  text-align: center;
  font-style: italic;
  color: #6c757d;
}

.footer {
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.footer-top {
  border-top: 1px solid rgba(0, 63, 75, 0.2);
  background-color: #0e2130;
  padding: 1.5rem 0;
}
.footer-top,
.footer-top * {
  color: rgba(244, 247, 250, 0.95);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  background-color: #07101a;
  color: rgba(230, 230, 230, 0.93);
  min-height: 24px;
  margin: 0;
  padding: 0.35rem 0;
  background-image: var(--footer-pattern);
}
.footer-bottom,
.footer-bottom * {
  color: rgba(230, 230, 230, 0.93);
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 calc(33.333% - 1.5rem);
  min-width: 220px;
}

.footer-title {
  color: #f6fbff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), #00ffff);
  border-radius: 1px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: #eff3f7;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}
.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary), #00ffff);
  transition: width 0.3s ease;
}
.footer-link:hover {
  color: var(--bg);
}
.footer-link:hover::after {
  width: 100%;
}

.auth-card {
  border-radius: 1rem;
  overflow: hidden;
}

.form-control,
.form-select {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
}

.bg-primary {
  background-color: var(--primary) !important;
}
.text-primary {
  color: var(--primary) !important;
}
.border-primary {
  border-color: var(--primary) !important;
}

.errorlist,
.errorlist li,
.alert-danger,
.alert-danger li {
  color: #dc3545 !important;
}

@media (max-width: 991.98px) {
  body {
    overflow-x: hidden;
  }

  .hero-shell,
  .directions-shell,
  .highlights-shell,
  .home-posts-shell {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
  }

  .hero-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 100%;
  }

  .highlights-shell > .row,
  .home-posts-shell .container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-panel {
    width: auto !important;
    margin: 1.5rem auto 0 !important;
  }

  .directions-shell > .container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .directions-shell > .container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .hero-content,
  .section-heading,
  .hero-panel,
  .direction-card,
  .highlight-card,
  .home-post-card {
    text-align: center !important;
  }

  .hero-actions {
    justify-content: center !important;
  }

  .direction-icon {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-panel {
    margin: 1.5rem auto 0 !important;
    width: calc(100% - 2rem) !important;
    max-width: 480px !important;
  }
}

#appFormModal .modal-header {
  background-color: var(--primary);
  color: #fff;
}

#appFormModal .modal-header .modal-title {
  color: #fff;
}

#appFormModal .modal-header .btn-close {
  filter: invert(1);
  opacity: 0.9;
}

#appFormModal .btn {
  border-radius: 0.5rem;
}

:focus,
:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.form-control:focus,
.form-select:focus,
.btn:focus,
.btn:focus-visible,
.navbar-toggler:focus,
.dropdown-toggle:focus,
.dropdown-item:focus,
a:focus,
a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.navbar.sticky-top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 5000 !important;
}

.btn {
  border-radius: 0.5rem;
  line-height: 1.2;
}
.btn-sm {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  line-height: 1.2;
}
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #002a33;
  border-color: #002a33;
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:active,
.btn-primary.active,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

@media (min-width: 992px) {
  .navbar .btn,
  .navbar .btn-sm {
    border-radius: 0.35rem !important;
  }
}

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
  border-color: var(--primary) !important;
  box-shadow: none !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background-color: var(--primary-dark) !important;
  color: #fff !important;
}

.choices__list--dropdown .choices__item--selectable.is-selected,
.choices__list[aria-expanded] .choices__item--selectable.is-selected {
  background-color: rgba(0, 62, 74, 0.15) !important;
  color: var(--text) !important;
}

@media (max-width: 991.98px) {
  .mobile-nav-title-wrap {
    min-width: 0;
  }

  .mobile-nav-title {
    width: 100%;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.5rem;
  }

  .right-nav {
    justify-content: flex-end !important;
  }
}
