/* ============================================================
 * Citometrie — corporate / financial-style design system.
 * Tokens, typography, components.
 * ============================================================ */

:root {
  /* surfaces */
  --bg:          #ffffff;
  --bg-soft:     #eaf2fb;     /* light blue section bg */
  --bg-card:     #ffffff;
  --bg-deep:     #0c2c52;     /* deep navy container bg */
  --bg-deep-2:   #103766;
  --line:        #e3e8ef;
  --line-soft:   #eef2f7;

  /* ink */
  --ink:         #0e1620;
  --ink-2:       #2f3e52;
  --muted:       #6c7585;

  /* accents (variable names kept for backwards compat) */
  --green:       #1f78d1;     /* primary blue CTA */
  --green-2:     #2e8be5;     /* hover, brighter */
  --green-deep:  #0c2c52;     /* deep navy */
  --green-soft:  #dbe9f9;
  --green-soft-2:#c2d8f0;
  --mint:        #b9d2ef;     /* soft sky-blue */
  --gold:        #f0b65a;     /* tertiary highlight (unchanged) */

  /* misc */
  --radius:      24px;
  --radius-lg:   32px;
  --shadow-card: 0 6px 22px rgba(12, 44, 82, 0.06), 0 2px 6px rgba(12, 44, 82, 0.04);
  --shadow-hi:   0 18px 50px rgba(12, 44, 82, 0.12);
}

/* ---- hard-off smooth scroll ------------------------------ */
html { scroll-behavior: auto !important; }
* { scroll-behavior: auto !important; }

/* ---- base ------------------------------------------------ */
html, body { background: var(--bg); color: var(--ink); }

body {
  font-family: 'DM Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: #fff; }

/* ---- type utilities -------------------------------------- */
/* NOTE: do NOT use .h-1/.h-2/.h-3/.h-4 — those collide with Tailwind height utilities. */
.display    { font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.display-1  { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: clamp(2.4rem, 5vw, 4rem);     line-height: 1.05; letter-spacing: -0.02em; }
.display-2  { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem);     line-height: 1.1;  letter-spacing: -0.015em; }
.display-3  { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2;  letter-spacing: -0.01em; }
.display-4  { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1.15rem; line-height: 1.3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  color: var(--green);
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 999px;
  background: var(--green);
}

.text-muted { color: var(--muted); }
.text-body  { color: var(--ink-2); }

/* ---- layout ---------------------------------------------- */
.shell { max-width: 1240px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.wide  { max-width: 1320px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tight { padding-block: clamp(3rem, 5vw, 4.5rem); }

/* ---- buttons --------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.6rem 0.55rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 500;
  border-radius: 999px;
  transition: all .25s ease;
  line-height: 1;
}
.btn .btn-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,0.18);
  transition: transform .25s ease, background .25s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-primary:hover .btn-i { transform: translateX(2px); }
.btn-ink     { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--green); color: #fff; }
.btn-light   { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { background: var(--green); color: #fff; border-color: var(--green); }
.btn-light .btn-i { background: var(--green-soft); }
.btn-light:hover .btn-i { background: rgba(255,255,255,0.2); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-outline-light:hover { background: #fff; color: var(--green-deep); border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 500; color: var(--green);
  transition: gap .25s ease;
}
.link-arrow:hover { gap: 0.7rem; }

/* ---- cards ----------------------------------------------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); }

.card-bordered {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.card-deep {
  background: var(--bg-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.card-deep .display, .card-deep .display-1, .card-deep .display-2, .card-deep .display-3, .card-deep .display-4 { color: #fff; }

/* icon circle */
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--green); color: #fff;
}
.icon-circle--soft { background: var(--green-soft); color: var(--green-deep); }
.icon-circle--ink  { background: var(--ink); color: #fff; }

/* floating stat chip on hero image */
.stat-chip {
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  box-shadow: 0 12px 30px rgba(14,74,61,0.18);
  display: inline-flex; align-items: center; gap: 0.6rem;
}

/* ---- sections / containers ------------------------------ */
.bg-mint { background: var(--bg-soft); }
.bg-deep { background: var(--bg-deep); color: #fff; }
.bg-deep .text-body { color: rgba(255,255,255,0.85); }
.bg-deep .text-muted { color: rgba(255,255,255,0.6); }

.rounded-hero {
  background: var(--bg-deep);
  color: #fff;
  border-radius: clamp(20px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}

/* ---- decorative -------------------------------------------*/
.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
}
.blob-mint { background: var(--mint); }
.blob-soft { background: var(--green-soft); }
.blob-deep { background: var(--green-deep); }

.dots-grid {
  background-image: radial-gradient(rgba(31,169,126,0.35) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}

.divider {
  height: 1px;
  background: var(--line);
}

/* ---- header ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: 1rem; padding-bottom: 1rem;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header[data-scrolled="true"] {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-bar {
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.65rem 0.5rem 1.4rem;
  box-shadow: 0 10px 30px rgba(14, 74, 61, 0.06);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.nav-link:hover, .nav-link.is-active { color: var(--green); }
.has-children > .nav-link::after {
  content: '▾'; font-size: 0.7rem; color: var(--muted); margin-left: 2px;
}
.nav-sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: #fff;
  border-radius: 18px;
  padding: 0.6rem;
  box-shadow: 0 18px 40px rgba(14, 74, 61, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .2s ease;
}
.has-children:hover .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub a {
  display: block; padding: 0.6rem 0.85rem; border-radius: 12px;
  font-size: 0.9rem; color: var(--ink);
}
.nav-sub a:hover { background: var(--bg-soft); color: var(--green); }

/* mobile panel */
.mobile-panel { background: #fff; border-radius: 18px; box-shadow: 0 18px 40px rgba(14, 74, 61, 0.12); }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: 1.05rem; font-weight: 500; color: var(--ink);
}
.mobile-link:last-child { border-bottom: 0; }

/* ---- footer ---------------------------------------------- */
.site-foot {
  background: var(--ink);
  color: #fff;
  border-radius: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0 0;
  margin-top: 0;
}
.site-foot a { color: rgba(255,255,255,0.8); }
.site-foot a:hover { color: var(--green); }

/* ---- forms ----------------------------------------------- */
.input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: inherit; font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 169, 126, 0.15); }

.input-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  width: 100%;
}
.input-pill::placeholder { color: rgba(255,255,255,0.5); }
.input-pill:focus { outline: none; border-color: var(--green); }

/* ---- marquee --------------------------------------------- */
.marquee { overflow: hidden; width: 100%; }
.marquee__track {
  display: inline-flex; gap: 3rem; padding-block: 1rem;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- reveal hooks (GSAP) --------------------------------- */
[data-fade]   { opacity: 0; transform: translateY(28px); }
[data-stagger] > * { opacity: 0; transform: translateY(20px); }
[data-clip]   { clip-path: inset(0 100% 0 0); }

/* ---- accordion ------------------------------------------- */
details.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  transition: border-color .2s ease;
}
details.faq-item[open] { border-color: var(--green); }
details.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink);
  font-size: 1.05rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+'; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--bg-soft); color: var(--green);
  font-size: 1.3rem; font-weight: 500;
  transition: all .2s ease;
}
details.faq-item[open] summary::after { content: '−'; background: var(--green); color: #fff; }
details.faq-item .faq-body {
  padding-top: 0.9rem;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ---- prose ----------------------------------------------- */
.prose-editorial { color: var(--ink-2); line-height: 1.7; }
.prose-editorial ul { margin-top: 0.6rem; }
.prose-editorial li { padding-left: 1.5rem; position: relative; margin-block: 0.35rem; }
.prose-editorial li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 999px; background: var(--green);
}

/* small bits */
.kbd-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-soft); color: var(--green); font-weight: 700;
}
.tag-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: var(--bg-soft);
  color: var(--green-deep);
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
}

/* helper sizes */
.aspect-hero { aspect-ratio: 16 / 11; }
.aspect-card { aspect-ratio: 4 / 5; }

/* ── PMS membership plan: expiry line ─────────────────────────────
   Renders the fixed-period expiry ("Valabilă până la 1 ianuarie 2027")
   as its own subtle line beneath the price. Markup comes from the
   pms_subscription_plan_output_duration filter in functions.php. */
.pms-plan-expiry {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 400;
  color: var(--muted);
}
.pms-plan-expiry__icon {
  flex: none;
  width: 14px;
  height: 14px;
  opacity: 0.85;
}
.pms-plan-expiry__date {
  font-weight: 600;
  color: var(--ink-2);
}

/* ============================================================
   Event detail pages — photo gallery + lightbox
   ============================================================ */
.cgal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
@media (min-width: 640px) {
  .cgal { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
}
@media (min-width: 1024px) {
  .cgal { grid-template-columns: repeat(4, 1fr); }
}
.cgal-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  cursor: zoom-in;
}
.cgal-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cgal-item:hover img { transform: scale(1.06); }
.cgal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 44, 82, 0.28), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cgal-item:hover::after { opacity: 1; }

/* Lightbox overlay — markup injected by custom.js */
.clb {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 20, 38, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.clb.is-open { opacity: 1; visibility: visible; }
.clb img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  user-select: none;
}
.clb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.clb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.clb-prev { left: clamp(0.5rem, 3vw, 2rem); }
.clb-next { right: clamp(0.5rem, 3vw, 2rem); }
.clb-close {
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  transform: none;
  width: 44px;
  height: 44px;
}
.clb-count {
  position: absolute;
  bottom: clamp(0.75rem, 3vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .clb-prev { left: 0.4rem; }
  .clb-next { right: 0.4rem; }
  .clb-btn { width: 44px; height: 44px; }
}

/* Event detail — prose message block */
.event-letter p { margin-top: 1.15rem; }
.event-letter p:first-child { margin-top: 0; }

/* ============================================================
   Legal pages — prose
   ============================================================ */
.legal-prose {
  max-width: 820px;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.75;
}
.legal-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 2.2rem 0 0.75rem;
}
.legal-prose h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.6rem 0 0.5rem;
}
.legal-prose h2:first-child,
.legal-prose h3:first-child { margin-top: 0; }
.legal-prose p { margin: 0 0 1rem; }
.legal-prose ul { margin: 0 0 1.15rem; padding-left: 1.25rem; list-style: disc; }
.legal-prose li { margin: 0.35rem 0; }
.legal-prose a { color: var(--green); text-decoration: underline; }
.legal-prose strong { color: var(--ink); }

/* ============================================================
   Checkout — Terms & Conditions consent checkbox
   ============================================================ */
.citometrie-terms-field { margin: 1rem 0 1.25rem; }
.citometrie-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.citometrie-terms-label input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; }
.citometrie-terms-label a { color: var(--green); text-decoration: underline; }

/* ============================================================
   Cookie consent banner
   ============================================================ */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  padding: 0 clamp(1rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem);
  transform: translateY(130%);
  transition: transform 0.35s ease;
}
.cookie-consent.is-visible { transform: translateY(0); }
.cookie-consent__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.cookie-consent__text {
  margin: 0;
  max-width: 640px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.cookie-consent__text a { color: var(--mint); text-decoration: underline; }
.cookie-consent__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
@media (max-width: 560px) {
  .cookie-consent__inner { flex-direction: column; align-items: stretch; }
  .cookie-consent__actions { justify-content: flex-end; }
}
