/* ==========================================================================
   MOTRIX — Components
   Reusable pieces shared by every page. Mobile-first throughout.
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;                 /* comfortable touch target */
  padding: var(--sp-3) var(--sp-7);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  transition: background-color var(--t-base), color var(--t-base),
              border-color var(--t-base), transform var(--t-fast),
              box-shadow var(--t-base);
}

.btn:active { transform: translateY(1px) scale(0.995); }

/* Primary — solid lime with dark ink text. The main CTA everywhere. */
.btn--primary {
  background: var(--c-lime);
  color: var(--c-ink);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--c-lime-bright);
    box-shadow: var(--shadow-lime);
  }
}

/* Secondary — outlined, for lower-priority actions next to a primary. */
.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-strong);
}

@media (hover: hover) {
  .btn--ghost:hover {
    border-color: var(--c-lime);
    color: var(--c-lime);
  }
}

/* Full-width — the default treatment on mobile per the screenshots. */
.btn--block { display: flex; width: 100%; }

.btn--lg {
  min-height: 60px;
  font-size: 1.125rem;
  padding-inline: var(--sp-8);
}

.btn--sm {
  min-height: 44px;
  font-size: 0.9375rem;
  padding: var(--sp-2) var(--sp-5);
}

/* Buttons stop being full-width once there is room beside them. */
@media (min-width: 640px) {
  .btn--block { display: inline-flex; width: auto; }
  .btn--block.btn--keep-block { display: flex; width: 100%; }
}

/* ==========================================================================
   SITE HEADER + NAVIGATION
   Mobile: wordmark + hamburger, full-screen overlay menu.
   Desktop (>=1120px): horizontal nav row + lime "Rezervă" CTA, no hamburger.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background-color var(--t-base);
}

/* main.js toggles this once the page is scrolled past the hero top. */
.site-header.is-stuck { border-bottom-color: var(--c-border); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 68px;
}

/* --- Wordmark. Pure CSS text; swap for an <img>/<svg> logo when available. */
.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-text);
  padding-block: var(--sp-2);
}

.wordmark--lg { font-size: 1.5rem; }

/* --- Header logo (assets/img/logo_name.png). Text wordmark everywhere
   else (footer, mobile menu) is unaffected. */
.wordmark__img {
  display: block;
  height: 40px;
  width: auto;
  /* The PNG's own canvas isn't optically centered — most of its ink (the
     hex icon + letterforms) sits in the upper half, with empty transparent
     space left below. Centering the *box* therefore still reads as sitting
     high next to the nav text; nudging it down compensates. Percentage, so
     it holds at both sizes below. */
  transform: translateY(15%);
  transition: filter var(--t-base), transform var(--t-fast);
}

@media (min-width: 1120px) {
  .wordmark__img { height: 48px; }
}

@media (hover: hover) {
  .wordmark:hover { color: var(--c-lime); }

  /* Same lime "highlight" the text wordmark gets, translated to a glow +
     lift since color doesn't apply to a bitmap logo. */
  .wordmark--logo:hover .wordmark__img {
    filter: drop-shadow(0 0 10px rgba(187, 243, 81, 0.65));
    transform: translateY(calc(15% - 1px)) scale(1.03);
  }
}

/* --- Hamburger button (mobile only). */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  border-radius: var(--r-chip);
}

.nav-toggle__bar {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}

/* Morph into an X while the overlay is open. */
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --- Desktop nav row — hidden on mobile, where the overlay takes over. */
.site-nav { display: none; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-4), 2.2vw, var(--sp-6));
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding-block: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-text-soft);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--c-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

@media (hover: hover) {
  .site-nav__link:hover { color: var(--c-text); }
  .site-nav__link:hover::after { transform: scaleX(1); }
}

/* Current page — set with aria-current="page" in the markup. */
.site-nav__link[aria-current='page'] { color: var(--c-lime); }
.site-nav__link[aria-current='page']::after { transform: scaleX(1); }

/* Header CTA — desktop only. Needs its own rule rather than a generic
   visibility utility so it keeps `inline-flex` from .btn when shown. */
.site-header__cta { display: none; }

@media (min-width: 1120px) {
  .site-header__inner { min-height: 84px; }
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .site-header__cta { display: inline-flex; }
}

/* --- Full-screen mobile menu overlay. */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  padding: var(--sp-3) 0 var(--sp-5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  /* visibility is stepped, not interpolated: delayed until the fade-out ends
     when closing, applied instantly when opening. Transitioning it like the
     other properties would leave the panel `hidden` for the first frames,
     and .focus() on a hidden element silently does nothing. */
  transition: opacity var(--t-base), transform var(--t-base),
              visibility 0s linear 240ms;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-base), transform var(--t-base),
              visibility 0s linear 0s;
}

.nav-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.nav-overlay__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  gap: var(--sp-5);
  padding-block: var(--sp-4);
}

.nav-overlay__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-overlay__link {
  display: block;
  padding: 7px 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5.6vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: var(--ls-display);
  color: var(--c-text);
}

.nav-overlay__link[aria-current='page'] { color: var(--c-lime); }

@media (hover: hover) {
  .nav-overlay__link:hover { color: var(--c-lime); }
}

.nav-overlay__foot {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}

@media (min-width: 1120px) {
  .nav-overlay { display: none; }
}

/* ==========================================================================
   CARDS + MEDIA
   ========================================================================== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
}

.card--pad { padding: var(--sp-5); }
.card--quiet { background: transparent; }

@media (min-width: 768px) {
  .card--pad { padding: var(--sp-6); }
}

/* Framed image with the site's rounded, outlined treatment.
   display:block matters because .media is sometimes a <span> (inside the
   gallery buttons), where the default inline box would drop aspect-ratio. */
.media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-media);
  border: 1px solid var(--c-border);
  background: var(--c-bg-raised);
}

.media img,
.media svg,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero video specifics: no native controls UI, and no pointer cursor since
   it isn't interactive (it's decorative — see the aria-hidden note in the
   markup). Poster fills the frame identically to the video itself so there
   is no visible jump once playback actually starts. */
.hero__video {
  display: block;
  pointer-events: none;
  object-position: 25% 75%;   /* crop from the top: keep the lower part of the frame in view */
}

.hero__video::-webkit-media-controls { display: none !important; }

/* Aspect-ratio variants used across the pages. */
.media--portrait { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--landscape { aspect-ratio: 16 / 10; }
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }

/* Mono caption sitting under a tile, with the short lime rule. */
.media-caption {
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  color: var(--c-text-soft);
}

.media-caption::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  margin-top: var(--sp-2);
  border-radius: 2px;
  background: var(--c-text-soft);
  opacity: 0.55;
}

/* ==========================================================================
   VIDEO PLAY BUTTON (homepage LED-floor section)
   ========================================================================== */
.play-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--c-text);
}

.play-button__ring {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-ink);
  transition: transform var(--t-base), background-color var(--t-base);
}

.play-button__ring svg { width: 26px; height: 26px; }

.play-button__label {
  font-size: var(--fs-small);
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

@media (hover: hover) {
  .play-button:hover .play-button__ring {
    transform: scale(1.08);
    background: var(--c-lime);
  }
}

/* ==========================================================================
   PRICING CARD
   ========================================================================== */
.price-card {
  position: relative;   /* containing block for .price-card__badge */
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
}

/* Corner badge for the featured tier ("Best deal"). Inset enough from the
   edges to clear the card's rounded corner and overflow:hidden without
   being clipped. Reuses the primary-button lime/ink treatment so it reads
   as an established pattern rather than a new color pairing. */
.price-card__badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-lime);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lime);
}

.price-card__media {
  aspect-ratio: 16 / 7;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--c-border);
}

.price-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
  padding: var(--sp-5);
}

.price-card__title {
  font-size: var(--fs-display-md);
  font-weight: 800;
}

.price-card__desc { color: var(--c-text-soft); }

.price-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 8vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--c-lime);
}

.price-card__unit {
  font-size: var(--fs-lead);
  color: var(--c-text);
  font-weight: 500;
}

.price-card__note {
  font-size: var(--fs-small);
  color: var(--c-text-mute);
}

.price-card__cta { margin-top: auto; padding-top: var(--sp-4); }

/* Highlighted / recommended tier. */
.price-card--featured {
  border-width: 4px;   /* base 1px + 3px, thicker than the plain tier card */
  border-color: rgba(187, 243, 81, 0.45);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   QUOTE / TESTIMONIAL CARD
   ========================================================================== */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
}

/* Oversized lime quotation mark. */
.quote-card__mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 0.6;
  color: var(--c-lime);
  height: 2.4rem;
}

.quote-card__rule {
  width: 84px;
  height: 2px;
  background: var(--c-lime);
  opacity: 0.85;
  border-radius: 2px;
}

/* 5-star rating row. Add .is-empty to a star for lower ratings. */
.quote-card__stars {
  display: flex;
  gap: 0.25rem;
}

.quote-card__stars svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--c-lime);
}

.quote-card__stars .is-empty {
  fill: var(--c-border-strong);
}

.quote-card__text {
  color: var(--c-text-soft);
  font-size: var(--fs-body);
}

.quote-card__author {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  color: var(--c-text-mute);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   BENEFIT ROW (image + copy)
   Mobile: image left, copy right, divider between rows.
   Desktop: three equal columns, image above copy.
   ========================================================================== */
.benefit {
  display: grid;
  grid-template-columns: minmax(118px, 38%) 1fr;
  align-items: center;
  gap: var(--sp-5);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--c-border);
}

.benefit:last-child { border-bottom: 0; }

.benefit__title {
  font-size: var(--fs-display-sm);
  margin-bottom: var(--sp-2);
}

.benefit__text {
  font-size: var(--fs-small);
  color: var(--c-text-soft);
}

@media (min-width: 1120px) {
  .benefit {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--sp-5);
    padding-block: 0;
    border-bottom: 0;
  }
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form { display: flex; flex-direction: column; gap: var(--sp-5); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-field--full { grid-column: 1 / -1; }
}

.form-field { display: flex; flex-direction: column; gap: var(--sp-2); }

.form-label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-text);
}

.form-label .req { color: var(--c-lime); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-bg-raised);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-input);
  color: var(--c-text);
  font-size: var(--fs-body);
  transition: border-color var(--t-base), box-shadow var(--t-base),
              background-color var(--t-base);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: var(--lh-body);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--c-text-mute); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-lime);
  box-shadow: var(--ring);
  background: var(--c-surface);
}

/* Native select arrow replaced with a lime chevron. */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--sp-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bbf351' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 20px;
}

/* Date/number spinners styled to match the dark surface. */
.form-input[type='date']::-webkit-calendar-picker-indicator {
  filter: invert(85%) sepia(38%) saturate(900%) hue-rotate(30deg);
  cursor: pointer;
}

/* Invalid state — set by forms.js, not by :invalid, so errors only show
   after a submit attempt rather than while the user is still typing. */
.form-field.has-error .form-input,
.form-field.has-error .form-select,
.form-field.has-error .form-textarea {
  border-color: var(--c-danger);
}

.form-error {
  display: none;
  font-size: var(--fs-fine);
  color: var(--c-danger);
}

.form-field.has-error .form-error { display: block; }

.form-hint {
  font-size: var(--fs-fine);
  color: var(--c-text-mute);
}

/* Submission feedback banner. */
.form-status {
  display: none;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-input);
  border: 1px solid var(--c-border);
}

.form-status.is-visible { display: flex; }

.form-status--success {
  background: var(--c-lime-dim);
  border-color: rgba(187, 243, 81, 0.45);
  color: var(--c-text);
}

.form-status--error {
  background: rgba(255, 138, 138, 0.10);
  border-color: rgba(255, 138, 138, 0.45);
  color: var(--c-text);
}

/* Consent checkbox. The field wrapper keeps .form-field so forms.js can
   attach errors to it the same way it does for text inputs. */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
}

.form-check input[type='checkbox'] {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  background: var(--c-bg-raised);
  border: 1px solid var(--c-border-strong);
  border-radius: 7px;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}

.form-check input[type='checkbox']:checked {
  background: var(--c-lime);
  border-color: var(--c-lime);
  /* Tick drawn as a background image so no extra element is needed. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314091f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
}

.form-check input[type='checkbox']:focus-visible {
  outline: none;
  border-color: var(--c-lime);
  box-shadow: var(--ring);
}

.form-check__text { font-size: var(--fs-small); color: var(--c-text-soft); }

.form-field.has-error .form-check input[type='checkbox'] {
  border-color: var(--c-danger);
}

/* Honeypot — hidden from humans, catches naive bots. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   INFO CARD (contact details)
   ========================================================================== */
.info-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
}

.info-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-chip);
  background: var(--c-lime-dim);
  color: var(--c-lime);
}

.info-card__icon svg { width: 22px; height: 22px; }

.info-card__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-text-mute);
  margin-bottom: var(--sp-2);
}

.info-card__value {
  font-size: var(--fs-lead);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.35;
}

@media (hover: hover) {
  a.info-card__value:hover { color: var(--c-lime); }
}

/* The address entry wraps its two lines in <address> for semantics; reset
   the browser's default italic styling to match the other info cards. */
.info-card__value address { font-style: normal; }

/* ==========================================================================
   EMBED FRAME (leaderboard, map)
   ========================================================================== */
.embed {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
}

.embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.embed--map { aspect-ratio: 4 / 3; }

@media (min-width: 768px) {
  .embed--map { aspect-ratio: 16 / 9; }
}

/* Tall frame for the external leaderboard. */
.embed--board {
  height: 70vh;
  min-height: 460px;
}

/* Shimmer skeleton shown until the iframe reports load. */
.embed__skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
  text-align: center;
  background: var(--c-surface);
  transition: opacity var(--t-base), visibility var(--t-base);
}

.embed.is-loaded .embed__skeleton {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--c-border-strong);
  border-top-color: var(--c-lime);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(10, 5, 18, 0.92);
  opacity: 0;
  visibility: hidden;
  /* Same stepped-visibility pattern as .nav-overlay — see the note there. */
  transition: opacity var(--t-base), visibility 0s linear 240ms;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t-base), visibility 0s linear 0s;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: 88vh;
  transform: scale(0.97);
  transition: transform var(--t-base);
}

.modal.is-open .modal__dialog { transform: none; }

.modal__close {
  position: absolute;
  top: -56px;
  right: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  color: var(--c-text);
}

.modal__close svg { width: 20px; height: 20px; }

@media (hover: hover) {
  .modal__close:hover { background: var(--c-lime); color: var(--c-ink); }
}

.modal__figure {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.modal__figure img,
.modal__figure svg {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--r-media);
}

.modal__caption {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--c-text-soft);
}

.modal__video {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--r-media);
  overflow: hidden;
  background: #000;
}

/* Prev / next arrows. */
.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(46, 33, 64, 0.9);
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  color: var(--c-text);
}

.modal__nav svg { width: 22px; height: 22px; }
.modal__nav--prev { left: -4px; }
.modal__nav--next { right: -4px; }

@media (hover: hover) {
  .modal__nav:hover { background: var(--c-lime); color: var(--c-ink); }
}

@media (min-width: 1120px) {
  .modal__nav--prev { left: -68px; }
  .modal__nav--next { right: -68px; }
}

/* ==========================================================================
   SITE FOOTER
   Mobile: stacked and centered. Desktop: three columns.
   ========================================================================== */
.site-footer {
  background: var(--c-bg-deep);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-section);
}

/* Text-only now — no image. A single centered column at every width;
   .site-footer__cta-copy is already a flex column via the .stack/.stack--5
   utility classes on it in the markup, so this just centers that column
   as a whole and caps its width so text doesn't run too wide on desktop. */
.site-footer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-5);
}

.site-footer__cta-copy { max-width: 640px; }

/* The row has two items (button + map link) — center them as a pair once
   .cta-row goes horizontal, instead of them sitting flush left in the
   now-centered, width-capped column. */
.site-footer__cta-copy .cta-row { justify-content: center; }

.site-footer__address {
  font-size: var(--fs-lead);
  color: var(--c-text-soft);
  line-height: 1.45;
  font-style: normal;  /* <address> is italic by default in most browsers */
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--c-border);
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3) var(--sp-5);
}

.footer-nav a { font-size: var(--fs-small); color: var(--c-text-soft); }

@media (hover: hover) {
  .footer-nav a:hover { color: var(--c-lime); }
}

.social-row { display: flex; gap: var(--sp-3); }

.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  color: var(--c-text-soft);
  transition: color var(--t-base), border-color var(--t-base),
              background-color var(--t-base);
}

.social-link svg { width: 20px; height: 20px; }

@media (hover: hover) {
  .social-link:hover {
    color: var(--c-ink);
    background: var(--c-lime);
    border-color: var(--c-lime);
  }
}

@media (min-width: 1120px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer-nav { justify-content: flex-start; }
}

/* ==========================================================================
   PAGE HERO (shared by every inner page)
   ========================================================================== */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 8vw, 5rem) clamp(2rem, 6vw, 3.5rem);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 720px;
}

/* Variant with an image beside the copy. Stacked on mobile, split on desktop. */
.page-hero--split .page-hero__inner { max-width: none; }

.page-hero--split .page-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.page-hero--split .page-hero__media { margin-top: var(--sp-5); }

@media (min-width: 1120px) {
  .page-hero--split .page-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: var(--sp-9);
  }
  .page-hero--split .page-hero__media { margin-top: 0; }
}

/* Breadcrumb-ish back link. */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  letter-spacing: 0.08em;
  color: var(--c-text-mute);
}

.back-link svg { width: 14px; height: 14px; }

@media (hover: hover) {
  .back-link:hover { color: var(--c-lime); }
}

/* Desktop nav between 1120 and 1299 px: one line for every item (PS5 Colecție added). */
.site-nav__link { white-space: nowrap; }
@media (min-width: 1120px) and (max-width: 1299px) {
  .site-nav__list { gap: var(--sp-3); }
  .site-nav__link { font-size: 0.84rem; }
}

/* --- Language switch (RO / EN / ES / FR), filled in by the build. */
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; }
.lang-switch__list { display: flex; gap: 6px; }
.lang-switch__current, .lang-switch__link {
  display: inline-grid; place-items: center; min-width: 38px; height: 34px; padding: 0 8px;
  border-radius: var(--r-chip); border: 1px solid var(--c-border); color: var(--c-text-soft);
}
.lang-switch__current { color: var(--c-lime); border-color: rgba(187, 243, 81, 0.55); cursor: default; }
@media (hover: hover) { .lang-switch__link:hover { color: var(--c-text); border-color: var(--c-text-soft); } }
.site-header .lang-switch { display: none; }
@media (min-width: 1120px) {
  .site-header .lang-switch { display: block; position: relative; margin-left: auto; margin-right: calc(-1 * var(--sp-2)); }
  .site-header .lang-switch__current { cursor: pointer; height: 30px; min-width: 34px; font-size: 0.75rem; }
  .site-header .lang-switch__list {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 5;
    flex-direction: column; gap: 4px; padding: 8px 6px 6px; margin-top: 2px;
    background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 12px;
    opacity: 0; visibility: hidden; transition: opacity var(--t-fast), visibility 0s linear 150ms;
  }
  .site-header .lang-switch__link { height: 28px; min-width: 34px; font-size: 0.75rem; }
  .site-header .lang-switch:hover .lang-switch__list,
  .site-header .lang-switch:focus-within .lang-switch__list { opacity: 1; visibility: visible; transition: opacity var(--t-fast), visibility 0s; }
}
.nav-overlay .lang-switch { margin-bottom: var(--sp-1); }

/* Desktop header with the language switch: tighter nav (longer labels in French / Spanish); the logo never shrinks. */
.wordmark--logo { flex-shrink: 0; }
@media (min-width: 1120px) {
  .site-nav__list { gap: clamp(10px, 1.05vw, 18px); }
  .site-header__inner { gap: var(--sp-3); }
}
@media (min-width: 1120px) and (max-width: 1279px) {
  html[lang="fr"] .site-nav__link,
  html[lang="es"] .site-nav__link { font-size: 0.78rem; }
  html[lang="fr"] .site-nav__list { gap: 8px; }
}
@media (min-width: 1120px) and (max-width: 1239px) {
  .site-nav__link { font-size: 0.78rem; }
  .site-nav__list { gap: 9px; }
  html[lang="fr"] .site-nav__list,
  html[lang="es"] .site-nav__list { gap: 7px; }
}
@media (min-width: 1280px) {
  html[lang="fr"] .site-nav__list { gap: 11px; }
  html[lang="es"] .site-nav__list { gap: 13px; }
}

/* Breadcrumbs (every page except the homepage; blog included) */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 var(--sp-4); font-size: 0.85rem; color: var(--c-text-mute); }
.breadcrumbs a { color: var(--c-text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-lime); }
.breadcrumbs [aria-current] { color: var(--c-text-soft); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
