/* ==========================================================================
   BookingsMed — Prima pagina
   Necesita bm-tokens.css incarcat inainte.
   ========================================================================== */

.bm-home { font-family: var(--bm-font-sans); }

.bm-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--bm-sp-5);
}

.bm-section { padding: var(--bm-sp-12) 0; }
.bm-section--tint { background: #F4F8FC; }

.bm-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--bm-sp-4);
  margin-bottom: var(--bm-sp-6);
}

.bm-section__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bm-navy-700);
}

.bm-section__title--center { text-align: center; width: 100%; }

.bm-section__more {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-sp-1);
  font-size: var(--bm-text-sm);
  font-weight: 500;
  color: var(--bm-teal-500);
  text-decoration: none;
  white-space: nowrap;
}

.bm-section__more:hover { color: var(--bm-teal-700); text-decoration: none; }
.bm-section__more svg { width: 15px; height: 15px; }

/* ==========================================================================
   Hero
   ========================================================================== */

/* Culoarea de fundal e luata din marginea din stanga a pozei, asa ca pe ecrane
   late nu se vede nicio cusatura intre imagine si restul benzii. */
.bm-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: var(--bm-sp-10) 0;
  background-color: #E3EFFA;
}

/* Poza sta pe container, nu pe sectiune: marginea ei din dreapta se aliniaza
   cu marginea continutului, ca in macheta. Daca ar sta pe sectiune, pe un
   monitor de 1900px ar fugi cu 350px in afara coloanei de text. */
.bm-hero__grid {
  min-height: 480px;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}

/* Estompeaza marginile pozei catre culoarea benzii, in trei directii:
   - la stanga, ca textul sa ramana lizibil peste ea
   - la dreapta, unde marginea imaginii difera cu cateva nuante de fundal
     si lasa o dunga verticala vizibila
   - jos, unde fotografia sursa e taiata drept prin corpuri
   Fara asta se vede conturul dreptunghiular al imaginii. */
.bm-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(227, 239, 250, .97) 0%,
      rgba(227, 239, 250, .82) 32%,
      rgba(227, 239, 250, 0) 58%),
    linear-gradient(270deg,
      #E3EFFA 0%,
      rgba(227, 239, 250, 0) 7%),
    linear-gradient(0deg,
      #E3EFFA 0%,
      rgba(227, 239, 250, .55) 9%,
      rgba(227, 239, 250, 0) 22%);
}

.bm-hero::before,
.bm-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  aspect-ratio: 1;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  pointer-events: none;
}

.bm-hero::before { left: -180px; top: -220px; }
.bm-hero::after  { right: -200px; bottom: -260px; }

.bm-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: var(--bm-sp-8);
  align-items: end;
  width: 100%;
}

/* Continutul sta peste voal. Voalul e exclus: e absolut, iar o regula generica
   i-ar suprascrie pozitionarea si l-ar transforma in coloana de grila. */
.bm-hero__grid > *:not(.bm-hero__veil) { position: relative; z-index: 1; }

.bm-hero__title {
  margin: 0 0 var(--bm-sp-3);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bm-navy-700);
}

.bm-hero__lead {
  margin: 0 0 var(--bm-sp-6);
  font-size: var(--bm-text-md);
  line-height: 1.6;
  color: var(--bm-ink-500);
}

/* --- Formularul de cautare ------------------------------------------------- */

.bm-hero__form { display: grid; gap: var(--bm-sp-3); }

.bm-hfield {
  display: flex;
  align-items: center;
  gap: var(--bm-sp-3);
  min-height: 52px;
  padding: 0 var(--bm-sp-4);
  background: var(--bm-surface);
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-r-sm);
  transition: border-color var(--bm-dur) var(--bm-ease),
              box-shadow var(--bm-dur) var(--bm-ease);
}

.bm-hfield:focus-within { border-color: var(--bm-teal-500); box-shadow: var(--bm-focus-ring); }
.bm-hfield__icon { flex: 0 0 auto; display: grid; place-items: center; color: var(--bm-teal-500); }
.bm-hfield__icon svg { width: 18px; height: 18px; }

/* Campurile Services si Country vin gata randate din model, cu stil inline
   scris in PHP. Le neutralizam, altfel `border` si `width:80%` strica randul. */
.bm-hfield input,
.bm-hfield select {
  flex: 1 1 auto;
  min-width: 0;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
  font-family: var(--bm-font-sans) !important;
  font-size: var(--bm-text-base) !important;
  color: var(--bm-ink-900) !important;
  appearance: none;
  -webkit-appearance: none;
}

.bm-hfield input::placeholder { color: var(--bm-ink-400); }

.bm-hfield select {
  padding-right: var(--bm-sp-6) !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A99AC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  background-size: 18px !important;
}

.bm-hero__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--bm-sp-2);
  width: 100%;
  min-height: 52px;
  padding: 0 var(--bm-sp-5);
  border: 0;
  border-radius: var(--bm-r-sm);
  background: var(--bm-teal-500);
  font-family: var(--bm-font-sans);
  font-size: var(--bm-text-md);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background-color var(--bm-dur) var(--bm-ease);
}

.bm-hero__submit:hover { background: var(--bm-teal-600); }
.bm-hero__submit:focus-visible { outline: 0; box-shadow: var(--bm-focus-ring); }
.bm-hero__submit svg { width: 17px; height: 17px; }

.bm-hero__note {
  margin: var(--bm-sp-3) 0 0;
  font-size: var(--bm-text-xs);
  color: var(--bm-ink-400);
}

/* --- Insignele -------------------------------------------------------------- */

.bm-hero__visual { position: relative; align-self: end; margin-bottom: var(--bm-sp-6); }

.bm-hero__badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bm-sp-3);
  padding: var(--bm-sp-4);
  background: rgba(255, 255, 255, .93);
  border-radius: var(--bm-r-md);
  box-shadow: var(--bm-shadow-md);
}

.bm-badge { display: flex; gap: var(--bm-sp-2); align-items: flex-start; }
.bm-badge svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--bm-teal-500); margin-top: 1px; }
.bm-badge__title { display: block; font-size: var(--bm-text-xs); font-weight: 600; color: var(--bm-navy-700); line-height: 1.3; }
.bm-badge__note  { display: block; margin-top: 2px; font-size: var(--bm-text-xs); color: var(--bm-ink-500); line-height: 1.35; }

/* ==========================================================================
   Carduri de tara — Top Providers
   ========================================================================== */

.bm-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--bm-sp-4);
}

.bm-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--bm-r-md);
  text-decoration: none;
  box-shadow: var(--bm-shadow-sm);
}

.bm-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--bm-ease);
}

.bm-card:hover img { transform: scale(1.06); }

.bm-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 56, 107, 0) 45%, rgba(6, 56, 107, .82) 100%);
}

.bm-card__body {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: var(--bm-sp-3);
  color: #fff;
}

.bm-card__name { display: block; font-size: var(--bm-text-base); font-weight: 600; }
.bm-card__meta { display: block; margin-top: 2px; font-size: var(--bm-text-xs); opacity: .9; }

.bm-card__star {
  position: absolute;
  top: var(--bm-sp-2);
  right: var(--bm-sp-2);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px var(--bm-sp-2);
  border-radius: var(--bm-r-pill);
  background: rgba(255, 255, 255, .92);
  font-size: var(--bm-text-xs);
  font-weight: 600;
  color: var(--bm-navy-700);
}

.bm-card__star svg { width: 11px; height: 11px; color: #F5A623; }

/* ==========================================================================
   Rand de argumente
   ========================================================================== */

.bm-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bm-sp-4);
  margin-top: var(--bm-sp-6);
}

.bm-points--3 { grid-template-columns: repeat(3, 1fr); }

.bm-point {
  display: flex;
  align-items: center;
  gap: var(--bm-sp-3);
  padding: var(--bm-sp-4);
  background: var(--bm-surface);
  border: 1px solid var(--bm-line-soft);
  border-radius: var(--bm-r-md);
  font-size: var(--bm-text-sm);
  color: var(--bm-ink-700);
}

.bm-point svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--bm-teal-500); }

/* ==========================================================================
   Tratamente
   ========================================================================== */

.bm-treats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bm-sp-4);
}

.bm-treat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bm-surface);
  border: 1px solid var(--bm-line-soft);
  border-radius: var(--bm-r-md);
  text-decoration: none;
  transition: box-shadow var(--bm-dur) var(--bm-ease),
              transform var(--bm-dur) var(--bm-ease);
}

.bm-treat:hover { box-shadow: var(--bm-shadow-md); transform: translateY(-2px); text-decoration: none; }

/* Elementele cardului sunt <span>, fiindca tot cardul e un <a>. Fara `display`
   explicit ar ramane inline si s-ar aseza toate pe acelasi rand. */
.bm-treat__img { display: block; position: relative; aspect-ratio: 16 / 10; background: var(--bm-sky-50); }
.bm-treat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cand serviciul nu are poza, punem un simbol in locul ei */
.bm-treat__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--bm-teal-300); }
.bm-treat__ph svg { width: 38px; height: 38px; }

.bm-treat__body { display: block; padding: var(--bm-sp-4); }

.bm-treat__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--bm-sp-2);
}

.bm-treat__name {
  display: block;
  margin: 0;
  font-size: var(--bm-text-base);
  font-weight: 600;
  line-height: 1.35;
  color: var(--bm-navy-700);
}

.bm-treat__star {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  font-size: var(--bm-text-xs);
  font-weight: 600;
  color: var(--bm-ink-700);
}

.bm-treat__star svg { width: 12px; height: 12px; color: #F5A623; }
.bm-treat__price { display: block; margin: var(--bm-sp-2) 0 0; font-size: var(--bm-text-sm); color: var(--bm-teal-600); font-weight: 600; }
.bm-treat__note  { display: block; margin: var(--bm-sp-1) 0 0; font-size: var(--bm-text-xs); color: var(--bm-ink-500); line-height: 1.45; }

.bm-center { text-align: center; margin-top: var(--bm-sp-6); }
.bm-center p { margin: 0 0 var(--bm-sp-3); font-size: var(--bm-text-sm); color: var(--bm-ink-500); }

.bm-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-sp-2);
  padding: var(--bm-sp-3) var(--bm-sp-6);
  border: 0;
  border-radius: var(--bm-r-pill);
  background: var(--bm-teal-500);
  font-family: var(--bm-font-sans);
  font-size: var(--bm-text-base);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--bm-dur) var(--bm-ease);
}

.bm-pill:hover { background: var(--bm-teal-600); color: #fff; text-decoration: none; }
.bm-pill:focus-visible { outline: 0; box-shadow: var(--bm-focus-ring); }

/* ==========================================================================
   Banda de cifre
   ========================================================================== */

.bm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bm-sp-4);
  padding: var(--bm-sp-8) var(--bm-sp-6);
  background: var(--bm-navy-700);
  border-radius: var(--bm-r-lg);
  color: #fff;
}

.bm-stat { display: flex; align-items: center; gap: var(--bm-sp-3); justify-content: center; }
.bm-stat + .bm-stat { border-left: 1px solid rgba(255, 255, 255, .16); }
.bm-stat svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--bm-teal-300); }
.bm-stat__n { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.bm-stat__l { display: block; margin-top: 2px; font-size: var(--bm-text-sm); color: #B9CFE6; }

/* ==========================================================================
   Motive / Why choose
   ========================================================================== */

.bm-reasons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--bm-sp-5);
  text-align: center;
}

.bm-reason__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto var(--bm-sp-3);
  border-radius: 50%;
  background: var(--bm-teal-50);
  color: var(--bm-teal-500);
}

.bm-reason__icon svg { width: 22px; height: 22px; }
.bm-reason__t { margin: 0 0 var(--bm-sp-1); font-size: var(--bm-text-sm); font-weight: 600; color: var(--bm-navy-700); }
.bm-reason__n { margin: 0; font-size: var(--bm-text-xs); line-height: 1.5; color: var(--bm-ink-500); }

/* ==========================================================================
   Parteneri
   ========================================================================== */

.bm-partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--bm-sp-5);
  align-items: center;
}

.bm-partner {
  display: grid;
  place-items: center;
  padding: var(--bm-sp-3);
  background: var(--bm-surface);
  border: 1px solid var(--bm-line-soft);
  border-radius: var(--bm-r-sm);
  min-height: 74px;
}

.bm-partner img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Siglele au fundaluri si culori diferite; le temperam ca randul sa fie unitar,
     dar revin la culoare la hover. */
  filter: grayscale(1);
  opacity: .72;
  transition: filter var(--bm-dur) var(--bm-ease), opacity var(--bm-dur) var(--bm-ease);
}

.bm-partner:hover img { filter: none; opacity: 1; }

/* ==========================================================================
   Doua carduri de jos
   ========================================================================== */

.bm-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bm-sp-5);
}

.bm-tile {
  display: flex;
  align-items: center;
  gap: var(--bm-sp-5);
  padding: var(--bm-sp-6);
  background: var(--bm-sky-50);
  border-radius: var(--bm-r-lg);
}

.bm-tile__body { flex: 1 1 auto; min-width: 0; }
.bm-tile__t { margin: 0 0 var(--bm-sp-2); font-size: var(--bm-text-md); font-weight: 600; color: var(--bm-navy-700); }
.bm-tile__n { margin: 0 0 var(--bm-sp-3); font-size: var(--bm-text-sm); line-height: 1.55; color: var(--bm-ink-500); }

.bm-tile__link {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-sp-1);
  font-size: var(--bm-text-sm);
  font-weight: 600;
  color: var(--bm-teal-500);
  text-decoration: none;
}

.bm-tile__link:hover { color: var(--bm-teal-700); text-decoration: none; }
.bm-tile__link svg { width: 14px; height: 14px; }

.bm-tile__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bm-surface);
  color: var(--bm-teal-500);
}

.bm-tile__icon svg { width: 34px; height: 34px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .bm-cards    { grid-template-columns: repeat(3, 1fr); }
  .bm-treats   { grid-template-columns: repeat(2, 1fr); }
  .bm-reasons  { grid-template-columns: repeat(3, 1fr); }
  .bm-partners { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .bm-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--bm-sp-6); }
  /* Poza nu mai incape alaturi de text: o coboram sub el, la inaltime fixa. */
  .bm-hero { display: block; padding-bottom: 0; }
  .bm-hero__grid {
    min-height: 0;
    background-size: 150% auto;
    background-position: right bottom;
  }
  .bm-hero__veil {
    background: linear-gradient(180deg,
                rgba(227, 239, 250, .97) 0%,
                rgba(227, 239, 250, .92) 62%,
                rgba(227, 239, 250, 0) 100%);
  }
  .bm-hero__visual { margin-top: 46vw; }
  .bm-hero__badges { grid-template-columns: repeat(2, 1fr); }
  .bm-points { grid-template-columns: repeat(2, 1fr); }
  .bm-stats  { grid-template-columns: repeat(2, 1fr); row-gap: var(--bm-sp-6); }
  .bm-stat:nth-child(odd) { border-left: 0; }
  .bm-tiles { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .bm-wrap { padding: 0 var(--bm-sp-4); }
  .bm-section { padding: var(--bm-sp-8) 0; }
  .bm-hero { padding-top: var(--bm-sp-8); }
  .bm-hero__grid { background-size: 190% auto; }
  .bm-hero::before, .bm-hero::after { display: none; }
  .bm-hero__title { font-size: 1.75rem; }
  .bm-hero__visual { margin-top: 60vw; }
  .bm-hero__badges { grid-template-columns: repeat(2, 1fr); gap: var(--bm-sp-3); }

  .bm-cards    { grid-template-columns: repeat(2, 1fr); }
  .bm-treats   { grid-template-columns: 1fr; }
  .bm-reasons  { grid-template-columns: repeat(2, 1fr); }
  .bm-partners { grid-template-columns: repeat(2, 1fr); }
  .bm-points   { grid-template-columns: 1fr; }
  .bm-stats    { grid-template-columns: 1fr; padding: var(--bm-sp-6) var(--bm-sp-4); }
  .bm-stat     { justify-content: flex-start; }
  .bm-stat + .bm-stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: var(--bm-sp-4); }
  .bm-section__head { flex-direction: column; align-items: flex-start; gap: var(--bm-sp-2); }
  .bm-tile { flex-direction: column-reverse; align-items: flex-start; gap: var(--bm-sp-4); }
}
