/* Imaginarium – din logo (KIDS: lime, cyan, galben, roz + navy) */
:root {
  --img-navy: #0c1628;
  --img-navy-mid: #152a4a;
  --img-bg: #0c1628;
  --img-primary: #6366f1;
  --img-primary-light: #a5b4fc;
  --img-accent: #facc15;
  --img-pink: #f472b6;
  --img-coral: #f472b6;
  --img-mint: #84cc16;
  --img-sky: #22d3ee;
  --img-sun: #facc15;
  --img-orange: #fb923c;
  --img-foam: #f0f9ff;
  --img-footer: #080f1c;
  --img-text: #152136;
  --img-radius: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--img-text);
  background:
    radial-gradient(1000px 500px at 5% 0%, rgba(132, 204, 22, 0.08), transparent 50%),
    radial-gradient(900px 450px at 95% 10%, rgba(34, 211, 238, 0.1), transparent 48%),
    radial-gradient(800px 400px at 50% 100%, rgba(244, 114, 182, 0.08), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #f0fdf4 25%, #ecfeff 60%, #fffbeb 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Header */
.site-header {
  position: relative;
  background: linear-gradient(120deg, #1e3d5a 0%, #2d5577 50%, #3d6a8f 100%);
  box-shadow: 0 4px 24px rgba(20, 45, 70, 0.28);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--img-mint),
    var(--img-sky),
    var(--img-sun),
    var(--img-pink)
  );
  pointer-events: none;
}
.site-header .navbar {
  --bs-navbar-color: rgba(255, 255, 255, 0.88);
  --bs-navbar-hover-color: #fff;
  --bs-navbar-active-color: var(--img-accent);
  padding: 0.6rem 0;
}
.brand-text {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
  filter: invert(1);
}
.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  padding: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.btn-nav-pill {
  background: var(--img-accent) !important;
  color: var(--img-navy) !important;
  font-weight: 600;
  border-radius: 2rem;
  margin-left: 0.5rem;
  padding: 0.35rem 0.9rem !important;
}
.btn-nav-pill:hover {
  filter: brightness(1.05);
}

/* CTA: „Află mai multe” = gradient viu; „Cere rezervare” = mai închis, contrast */
.btn-cta-lmore {
  --bs-btn-color: #fff;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #fff;
  --bs-btn-active-border-color: transparent;
  color: #fff !important;
  font-weight: 600;
  border: none !important;
  background: linear-gradient(135deg, #7477f8 0%, #2967ee 40%, #06b6d4 100%) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32);
  transition: filter 0.2s, box-shadow 0.2s;
}
.btn-cta-lmore:hover,
.btn-cta-lmore:focus,
.btn-cta-lmore:active {
  color: #fff !important;
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
}

.btn-cta-rez {
  --bs-btn-color: #f8fafc;
  --bs-btn-border-color: #0b1220;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  color: #f1f5f9 !important;
  font-weight: 600;
  border: 1px solid rgba(15, 23, 42, 0.9) !important;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 55%, #020617 100%) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: filter 0.2s, box-shadow 0.2s;
}
.btn-cta-rez:hover,
.btn-cta-rez:focus,
.btn-cta-rez:active {
  color: #fff !important;
  filter: brightness(1.1);
  border-color: #000 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

/* Hero – același famile de albastru, două nuanțe luminate */
.hero-grad {
  background: linear-gradient(170deg, #306e7c 0%, #51baa2 60%, #c2ea77 100%);
  border-bottom-left-radius: var(--img-radius);
  border-bottom-right-radius: var(--img-radius);
  box-shadow: 0 12px 28px rgba(35, 70, 110, 0.22);
}
.hero-grad::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0%, transparent 100%);
  pointer-events: none;
}
.min-vh-50 {
  min-height: 40vh;
}
.py-lg-6 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}
@media (min-width: 992px) {
  .min-vh-50 {
    min-height: 50vh;
  }
}

/* Swiper (hero + carduri facilități) */
.home-swiper .swiper-pagination-bullet-active,
.facility-card-swiper .swiper-pagination-bullet-active {
  background: var(--img-accent) !important;
}
.home-swiper,
.facility-card-swiper {
  --swiper-theme-color: var(--img-accent);
}

/* Carduri facilități pe home – 3 / rând, slider ca hero */
.facility-card-swiper {
  min-height: 200px;
  overflow: hidden;
}
@media (min-width: 992px) {
  .facility-card-swiper {
    min-height: 220px;
  }
}
.facility-card-swiper__img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 992px) {
  .facility-card-swiper__img {
    height: 220px;
  }
}
.facility-card-swiper .swiper-slide {
  height: auto;
}
.facility-card-swiper .swiper-pagination {
  bottom: 8px !important;
}
.facility-card-fp__lead {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  max-height: 5.8em;
  font-size: 0.95rem;
}
.facility-card-fp__icon {
  line-height: 1.1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
.facility-gallery .object-fit-cover {
  object-fit: cover;
  object-position: center;
}

/* Carduri cu gradient (facilități + activități) */
.card-grad {
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.4) 0%, #fff 70%);
}
.card-grad--violet {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.2) 0%, rgba(224, 231, 255, 0.45) 45%, #fff 100%);
  border-color: rgba(139, 92, 246, 0.35) !important;
}
.card-grad--cyan {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.2) 0%, rgba(207, 250, 254, 0.5) 45%, #fff 100%);
  border-color: rgba(6, 182, 212, 0.35) !important;
}
.card-grad--amber {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.22) 0%, rgba(254, 243, 199, 0.55) 45%, #fff 100%);
  border-color: rgba(245, 158, 11, 0.4) !important;
}
.card-grad--pink {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.18) 0%, rgba(252, 231, 243, 0.55) 45%, #fff 100%);
  border-color: rgba(236, 72, 153, 0.32) !important;
}
.card-grad--lime {
  background: linear-gradient(180deg, rgba(132, 204, 22, 0.2) 0%, rgba(236, 252, 203, 0.55) 45%, #fff 100%);
  border-color: rgba(132, 204, 22, 0.38) !important;
}
.card-grad--emerald {
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.2) 0%, rgba(209, 250, 229, 0.5) 45%, #fff 100%);
  border-color: rgba(5, 150, 105, 0.35) !important;
}
.card-grad--tangerine {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.2) 0%, rgba(255, 237, 213, 0.5) 45%, #fff 100%);
  border-color: rgba(249, 115, 22, 0.32) !important;
}
.card-grad--indigo {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.2) 0%, rgba(224, 231, 255, 0.5) 45%, #fff 100%);
  border-color: rgba(99, 102, 241, 0.32) !important;
}
/* Activități (pagină activități) */
.card-grad--coral {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.2) 0%, rgba(255, 241, 242, 0.6) 40%, #fff 100%);
  border-color: rgba(244, 63, 94, 0.35) !important;
}
.card-grad--azure {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.22) 0%, rgba(224, 242, 254, 0.6) 40%, #fff 100%);
  border-color: rgba(14, 165, 233, 0.35) !important;
}
.card-grad--jade {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.2) 0%, rgba(204, 251, 241, 0.5) 40%, #fff 100%);
  border-color: rgba(20, 184, 166, 0.35) !important;
}
.activity-card-activitati .display-4 {
  line-height: 1.1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}
.facility-page__icon {
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* Secțiune „feature” (carduri colorate) */
/* Aliniat la literele K (lime), I (cyan), S (roz) din logo */
.feature-card--mint {
  background: linear-gradient(160deg, rgba(132, 204, 22, 0.2) 0%, #fff 55%);
  border: 1px solid rgba(132, 204, 22, 0.4) !important;
}
.feature-card--coral {
  background: linear-gradient(160deg, rgba(244, 114, 182, 0.22) 0%, #fff 55%);
  border: 1px solid rgba(244, 114, 182, 0.4) !important;
}
.feature-card--sky {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.2) 0%, #fff 55%);
  border: 1px solid rgba(34, 211, 238, 0.4) !important;
}
section .h1.text-center {
  /* background: linear-gradient(90deg, #65a30d, #0e7490, #facc15, #ec4899); */
  -webkit-background-clip: text;
  background-clip: text;
  /* color: transparent; */
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--img-navy) 0%, var(--img-footer) 50%, #04070d 100%);
  border-top: 3px solid rgba(99, 102, 241, 0.45);
}
.site-footer a:hover {
  color: #fff !important;
}
.footer-map {
  width: 100%;
  height: 180px;
}
.footer-map iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(0.95);
}
@media (max-width: 575.98px) {
  .footer-map { height: 150px; }
}

/* ── Iconuri social ───────────────────────────────────────────────────── */
.social-list {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.social-link svg { width: 18px; height: 18px; display: block; }

/* Stare normală — culoarea brandului. */
.social-link--instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  box-shadow: 0 4px 12px rgba(221, 42, 123, 0.32);
}
.social-link--facebook {
  background: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.32);
}

/* Hover — varianta neutră, semi-transparentă. */
.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
/* Variantă footer — un strop mai mare. */
.social-list--footer .social-link { width: 40px; height: 40px; }
.social-list--footer .social-link svg { width: 20px; height: 20px; }
/* Variantă drawer (mobil) — aliniate centrat sub linkuri. */
.social-list--drawer { padding: 0.5rem; justify-content: flex-start; }

.legal-box {
  max-height: 80vh;
  overflow-y: auto;
}

/* Acord checkbox labels — font ușor redus pentru a reduce zgomotul vizual. */
.form-check.acord-check .form-check-label {
  font-size: 0.85rem;
  line-height: 1.45;
}
.form-check.acord-check .form-check-label strong {
  font-weight: 600;
}

/* Sfat copii — varianta scurtă vs lungă (afișată după breakpoint). */
.children-tip__short { display: block; }
.children-tip__long  { display: none; }
@media (min-width: 768px) {
  .children-tip__short { display: none; }
  .children-tip__long  { display: block; }
}

/* Text lung pe paginile de facilitate */
.prose-mock p {
  line-height: 1.7;
  margin-bottom: 1.1rem;
  max-width: 68ch;
}
.prose-mock p:last-of-type {
  margin-bottom: 0;
}

#signCanvas {
  background: #fafafa;
  border: 1px dashed rgba(99, 102, 241, 0.45);
}

form .btn-primary {
  background: linear-gradient(135deg, #1e3a5f, #4f46e5, #0891b2) !important;
  border: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.35);
}
form .btn-primary:hover {
  filter: brightness(1.05);
}
form .btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(20%);
}

/* Bara de trimitere — buton mare, evident, ușor de atins pe mobil. */
.submit-bar {
  position: relative;
}
.submit-bar #submitWaiver {
  letter-spacing: 0.02em;
}
.submit-bar #submitWaiver:not(:disabled) {
  animation: submitPulse 2.4s ease-in-out infinite;
}
.submit-bar #submitWaiver:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.4);
}
@keyframes submitPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(15, 23, 42, 0.3); }
  50%      { box-shadow: 0 6px 22px rgba(79, 70, 229, 0.55); }
}
@media (max-width: 575.98px) {
  .submit-bar {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.75rem;
    z-index: 5;
  }
}

/* Skip link / focus */
.visually-hidden-focusable:focus {
  z-index: 10000;
  position: fixed;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
}

/* ── Off-canvas (drawer) pentru meniul mobil ───────────────────────────── */
.nav-offcanvas {
  background: linear-gradient(180deg, #1e3d5a 0%, #152a4a 60%, #0c1628 100%);
  color: #f8fafc;
  width: 280px;
}
.nav-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 1rem;
}
.nav-offcanvas .offcanvas-title { color: #fff; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }
.nav-offcanvas .offcanvas-body { padding: 0.5rem 0.5rem 1rem; }
.nav-offcanvas .navbar-nav { gap: 0.15rem; }
.nav-offcanvas .nav-link {
  color: rgba(255, 255, 255, 0.88);
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
.nav-offcanvas .nav-link:hover,
.nav-offcanvas .nav-link:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.nav-offcanvas .nav-link.active {
  background: rgba(250, 204, 21, 0.18);
  color: var(--img-accent);
}
.nav-offcanvas .btn-nav-pill {
  margin: 0.6rem 0.4rem 0;
  text-align: center;
}
@media (min-width: 992px) {
  /* La desktop dezactivăm complet stilurile de drawer; lăsăm flow-ul Bootstrap. */
  .nav-offcanvas {
    background: transparent !important;
    color: inherit;
    width: auto;
    position: static;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
  }
  .nav-offcanvas .offcanvas-header { display: none; }
  .nav-offcanvas .offcanvas-body { padding: 0; }
  .nav-offcanvas .nav-link { color: rgba(255, 255, 255, 0.88); padding: 0.5rem 0.85rem; }
  .nav-offcanvas .nav-link.active { background: transparent; color: var(--img-accent); }
}

/* ── Tipografie generală pe mobil ──────────────────────────────────────── */
@media (max-width: 575.98px) {
  body { font-size: 0.95rem; }
  h1, .h1 { font-size: 1.55rem; }
  h2, .h2 { font-size: 1.25rem; }
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.75rem; }
  .container.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .form-label { font-size: 0.88rem; margin-bottom: 0.25rem; }
  .legal-box { font-size: 0.82rem; }
  .legal-box ol { padding-left: 1rem; }
  .form-check.acord-check .form-check-label { font-size: 0.78rem; }
}
