/* ============================================================
   CONTACT PAGE (reference: dentix.framer.website/contacts)
   Hero with two reaching hands + "Contactează-ne", two-column
   form / info + map, and a green closing CTA band.
   ============================================================ */

/* ---- hero with hands ---- */
.cx-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #EFE9DE, #E7DFCF);
  border-radius: var(--r-card);
  min-height: clamp(340px, 42vw, 520px);
  display: flex;
  align-items: flex-end;
  margin-top: 1rem;
}
.cx-hero__armL, .cx-hero__armR {
  position: absolute;
  top: -4%;
  height: 78%;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 24px 40px rgba(16, 24, 32, .18));
}
.cx-hero__armL { left: 2%; transform: translateX(-4%); }
.cx-hero__armR { right: 0; top: 12%; height: 70%; }
.cx-hero__inner { position: relative; z-index: 2; padding: clamp(1.6rem, 4vw, 3rem); }
.cx-hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .95;
  color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .cx-hero__armL { animation: cxHandL 1.1s var(--ease) both; }
  .cx-hero__armR { animation: cxHandR 1.1s var(--ease) both; }
}
@keyframes cxHandL { from { transform: translateX(-45%); opacity: 0; } to { transform: translateX(-4%); opacity: 1; } }
@keyframes cxHandR { from { transform: translateX(45%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 640px) {
  .cx-hero { min-height: 60vw; }
  .cx-hero__armL { height: 56%; left: -6%; }
  .cx-hero__armR { height: 50%; right: -8%; }
  .cx-hero h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
}

/* ---- two-column form / info ---- */
.cx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.4rem, 2.5vw, 2.2rem);
  align-items: start;
}
.cx-grid > * { min-width: 0; }
.cx-card {
  background: #fff;
  border-radius: var(--r-card);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: 0 16px 40px -26px rgba(16, 24, 32, .3);
}
.cx-card > h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; }
.cx-card > .sub { color: var(--ink-60); margin-top: .5rem; margin-bottom: 1.6rem; }

/* form (reuses .field styling; date/time/checkbox additions) */
.cx-form .form-grid { grid-template-columns: 1fr 1fr; }
.cx-form .field input[type="date"],
.cx-form .field input[type="time"] { color: var(--ink); }
.cx-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 1.1rem;
  font-size: .86rem;
  color: var(--ink-60);
  line-height: 1.45;
}
.cx-check input { margin-top: .2rem; width: 17px; height: 17px; accent-color: var(--green); flex: none; }
.cx-check a { color: var(--blue); font-weight: 600; }
.cx-form .btn { width: 100%; justify-content: center; margin-top: 1.3rem; }

/* info rows */
.cx-info__rows { display: grid; gap: .3rem; margin-top: .4rem; }
.cx-info__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.cx-info__row:first-child { border-top: 0; }
.cx-info__row .t, .cx-info__row .t span, .cx-info__row .act { overflow-wrap: anywhere; }
.cx-info__ic {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #E3F0DC;
  color: var(--green);
}
.cx-info__ic svg { width: 20px; height: 20px; }
.cx-info__row .t { flex: 1 1 auto; min-width: 0; }
.cx-info__row .t b { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-40); text-transform: uppercase; }
.cx-info__row .t span { display: block; font-size: 1.02rem; font-weight: 600; color: var(--ink); margin-top: .1rem; }
.cx-info__row .act {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue);
  white-space: nowrap;
}
.cx-info__row .act:hover { color: var(--blue-deep); }

.cx-map {
  margin-top: 1.4rem;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 16px 40px -26px rgba(16, 24, 32, .3);
}
.cx-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.15); }

@media (max-width: 880px) {
  .cx-grid { grid-template-columns: 1fr; }
  .cx-form .form-grid { grid-template-columns: 1fr; }
}

/* ---- green closing CTA band ---- */
.cx-cta {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: clamp(240px, 26vw, 340px);
}
.cx-cta__media { overflow: hidden; }
.cx-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cx-cta__text {
  background: var(--green);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem);
}
.cx-cta__text h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.cx-cta__text p { margin-top: .9rem; color: rgba(255, 255, 255, .88); font-size: 1.05rem; line-height: 1.55; max-width: 34rem; }
.cx-cta__text .btn { align-self: flex-start; margin-top: 1.8rem; background: #fff; color: var(--ink); }
.cx-cta__text .btn:hover { background: var(--paper); }
@media (max-width: 760px) {
  .cx-cta { grid-template-columns: 1fr; }
  .cx-cta__media { min-height: 200px; }
}

/* ─── mâinile de pe antetul de contact, pe telefon ───
   Înainte: mâinile se suprapuneau peste titlu, iar „Contactează-ne" se rupea
   în „Contactează" / „ne". Acum mâinile au banda lor sus, titlul stă dedesubt
   pe fundal curat, iar cuvântul nu se mai desparte. */
@media (max-width: 640px) {
  .cx-hero {
    display: block;
    min-height: 0;
    padding-top: 52vw;               /* banda pentru strângerea de mână */
  }
  .cx-hero__armL {
    height: auto;
    width: 60%;
    left: -6%;
    top: 5%;
  }
  .cx-hero__armR {
    height: auto;
    width: 64%;
    right: -4%;
    top: 13%;
  }
  .cx-hero__inner { padding: 0 1.4rem 1.5rem; }
  .cx-hero h1 {
    font-size: clamp(2rem, 9.4vw, 3rem);
    line-height: 1;
    hyphens: none;
    overflow-wrap: normal;
  }
}
