/* ---------- Footer („blueprint") ---------- */
/* Grila stă pe `.footer-inner`, nu pe `.site-footer`: responsive.css (încărcat după)
   suprascrie `grid-template-columns` pe `.site-footer`.
   Tipografie: Cormorant Garamond pentru titlu și elemente (telefon, Telegram, navigare),
   Inter pentru etichete, sugestii, descriere și bara de jos.
   Blocul „Social" de mai jos (Urmărește-ne) e păstrat neschimbat. */

.site-footer {
  --f-teal: #1aa3b5;
  --f-ink: #eef1f3;
  --f-hint: #8b959d;
  --f-desc: #aeb7be;
  /* Titlul: max 46px (38px pe mobil); se micșorează după lățimea blocului ca să
     rămână pe 2 rânduri. Factorii (cqi) diferă pe limbă (lungimi diferite de text). */
  --f-hl-max: 46px;
  --f-hl-fit: 14cqi;
  position: relative;
  isolation: isolate;
  background-color: #0b1115;
  background-image:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(26, 163, 181, 0.1), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 48px);
  color: var(--f-ink);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grila de fundal se stinge spre partea de jos. */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, #0b1115 100%);
}

:lang(ro) .site-footer {
  --f-hl-fit: 12.3cqi;
}

:lang(ru) .site-footer {
  --f-hl-fit: 12.4cqi;
}

.footer-shell {
  max-width: 1240px;
  margin-inline: auto;
  padding: 88px 64px 0;
}

/* Coloana de contact are minimum lățimea etichetei (RO/RU sunt mai lungi). */
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(max-content, 1.45fr) minmax(0, 1fr) minmax(max-content, 0.75fr);
  gap: 40px;
  align-items: start;
}

/* Etichetele coloanelor (inclusiv „Urmărește-ne"). */
.footer-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 26px;
  color: var(--f-teal);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-heading::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 1px;
  background: var(--f-teal);
}

/* ---------- Brand (cu repere de colț, ca pe un desen tehnic) ---------- */

.footer-brand {
  --f-mark: rgba(26, 163, 181, 0.8);
  min-width: 0;
  padding: 28px 32px 32px;
  container-type: inline-size;
  background:
    linear-gradient(var(--f-mark), var(--f-mark)) left top / 14px 1px no-repeat,
    linear-gradient(var(--f-mark), var(--f-mark)) left top / 1px 14px no-repeat,
    linear-gradient(var(--f-mark), var(--f-mark)) right top / 14px 1px no-repeat,
    linear-gradient(var(--f-mark), var(--f-mark)) right top / 1px 14px no-repeat,
    linear-gradient(var(--f-mark), var(--f-mark)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--f-mark), var(--f-mark)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--f-mark), var(--f-mark)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--f-mark), var(--f-mark)) right bottom / 1px 14px no-repeat;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.footer-logo-mark {
  width: auto;
  height: 44px;
}

.footer-logo-copy {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.footer-logo-copy strong {
  color: var(--f-ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.footer-logo-copy small {
  color: var(--f-teal);
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.6em;
  text-transform: uppercase;
}

.footer-headline {
  margin: 36px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 42px;
  font-size: min(var(--f-hl-max), var(--f-hl-fit));
  font-weight: 400;
  line-height: 1.04;
}

/* Exact două rânduri pe desktop. */
.footer-headline > span {
  display: block;
  white-space: nowrap;
}

.footer-headline em {
  color: var(--f-teal);
  font-style: italic;
}

.footer-desc {
  max-width: 310px;
  margin: 22px 0 0;
  color: var(--f-desc);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.75;
}

/* ---------- Elemente (telefon, Telegram, navigare) ---------- */

.footer-item {
  --f-item-pad: 0px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  color: var(--f-ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.35s ease, transform 0.35s ease;
}

/* Sublinierea crește de la stânga la dreapta, doar sub text. */
.footer-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(var(--f-item-pad) + 3px);
  width: 0;
  height: 1px;
  background: var(--f-teal);
  transition: width 0.35s ease;
}

.footer-item:hover,
.footer-item:focus-visible,
.footer-item:active {
  color: #fff;
  transform: translateX(4px);
}

.footer-item:hover::after,
.footer-item:focus-visible::after,
.footer-item:active::after {
  width: 100%;
}

/* La telefon/Telegram sublinierea începe după iconiță (17px + 14px). */
.footer-item--icon::after {
  left: 31px;
}

.footer-item--icon:hover::after,
.footer-item--icon:focus-visible::after,
.footer-item--icon:active::after {
  width: calc(100% - 31px);
}

.footer-item-icon {
  display: grid;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--f-teal);
}

.footer-item-icon svg {
  width: 100%;
  height: 100%;
}

.footer-telegram {
  font-style: italic;
}

/* ---------- Contact ---------- */

.footer-contact,
.footer-menu {
  min-width: 0;
}

.footer-contact-item + .footer-contact-item {
  margin-top: 22px;
}

.footer-hint {
  margin: 4px 0 0 31px;
  color: var(--f-hint);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.footer-company {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.footer-company:empty {
  display: none;
}

.footer-company-row {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--f-desc);
  font-size: 0.9rem;
}

.footer-company-label {
  color: var(--f-hint);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-company-row a {
  color: inherit;
}

/* ---------- Navigare ---------- */

.footer-menu-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-menu-list .footer-item {
  --f-item-pad: 6px;
  padding: 6px 0;
}

/* ---------- Social ---------- */

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-secondary);
  background: transparent;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.28s ease;
}

.footer-social-link svg {
  width: 19px;
  height: 19px;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Hover: se umple cu culoarea brandului, iconița devine albă și se ridică ușor. */
.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.06);
}

.footer-social-link:hover svg {
  transform: scale(1.08);
}

/* Rămâne rotund și la focus de la tastatură (regula globală de focus rotunjește colțurile). */
.footer-social-link:focus-visible {
  border-radius: 50%;
}

/* Press: feedback tactil — se micșorează scurt. */
.footer-social-link:active {
  transform: translateY(-1px) scale(0.92);
  transition-duration: 0.09s;
}

.footer-social-link[data-net="instagram"]:hover,
.footer-social-link[data-net="instagram"]:focus-visible {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 62%, #285aeb 90%);
  box-shadow: 0 10px 26px rgba(214, 36, 159, 0.45);
}

.footer-social-link[data-net="facebook"]:hover,
.footer-social-link[data-net="facebook"]:focus-visible {
  background: #1877f2;
  box-shadow: 0 10px 26px rgba(24, 119, 242, 0.45);
}

.footer-social-link[data-net="tiktok"]:hover,
.footer-social-link[data-net="tiktok"]:focus-visible {
  background: #111418;
  box-shadow: -2px 0 0 #25f4ee, 2px 0 0 #fe2c55, 0 10px 26px rgba(0, 0, 0, 0.55);
}

/* ---------- Bara de jos ---------- */

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 72px;
  padding: 24px 0;
  border-top: 1px solid rgba(26, 163, 181, 0.35);
}

.footer-copy,
.footer-legal a {
  color: var(--f-hint);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.footer-copy {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.footer-legal a {
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #fff;
}

/* Înapoi sus: cerc 34px cu ↑ (derulare lină, vezi app.js). */
.footer-top {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: transparent;
  color: var(--f-ink);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.footer-top svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.footer-top:hover,
.footer-top:focus-visible {
  border-color: var(--f-teal);
}

.footer-top:hover svg,
.footer-top:focus-visible svg {
  transform: translateY(-2px);
}

.footer-top:focus-visible {
  border-radius: 50%;
}

/* Sub ~1280px marginea dreaptă e mai mică decât butoanele plutitoare: lăsăm loc. */
@media (max-width: 1300px) {
  .footer-bottom {
    padding-right: 16px;
  }
}

/* ---------- Tabletă: 2 × 2 ---------- */

@media (max-width: 1023px) {
  .footer-shell {
    padding: 72px 40px 0;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Mobil ---------- */

@media (max-width: 639px) {
  .site-footer {
    --f-hl-max: 38px;
  }

  .footer-shell {
    padding: 48px 20px 0;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .footer-brand,
  .footer-contact,
  .footer-menu,
  .footer-social {
    grid-column: 1 / -1;
  }

  .footer-brand {
    padding: 22px 22px 26px;
  }

  .footer-logo-mark {
    height: 36px;
  }

  .footer-logo-copy strong {
    font-size: 19px;
  }

  /* Pe mobil titlul poate trece firesc pe mai multe rânduri. */
  .footer-headline {
    font-size: var(--f-hl-max);
  }

  .footer-headline > span {
    white-space: normal;
  }

  .footer-heading {
    margin: 36px 0 14px;
    font-size: 10px;
  }

  .footer-item {
    min-height: 40px;
    font-size: 19px;
  }

  .footer-menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .footer-menu-list .footer-item {
    --f-item-pad: 0px;
    padding: 0;
  }

  /* Stivuit, aliniat la stânga; jos rămâne loc pentru butoanele plutitoare. */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 48px;
    padding: 24px 0 96px;
  }

  .footer-copy,
  .footer-legal a {
    font-size: 10px;
  }

  .footer-legal {
    gap: 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::after {
    transition: none !important;
  }
}

/* Două butoane plutitoare mici, stivuite (Telegram deasupra, Apel dedesubt). */
.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-contact.is-suppressed {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.floating-call,
.floating-telegram {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
}

.floating-call {
  background: var(--cyan);
  color: var(--on-cyan);
  box-shadow: 0 18px 40px rgba(16, 169, 194, 0.35);
}

.floating-telegram {
  background: var(--surface-elevated);
  color: var(--cyan);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.floating-call [data-call-icon],
.floating-telegram [data-telegram-icon] {
  width: 24px;
  height: 24px;
}

.floating-call [data-call-icon] svg,
.floating-telegram [data-telegram-icon] svg {
  width: 100%;
  height: 100%;
}
