/* ============== RESET DE BAZĂ ============== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.mib-body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============== CONTAINER GENERAL ============== */

.mib-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============== HEADER + NAV ============== */

.mib-header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.mib-header .mib-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
}

.mib-logo a {
  font-weight: 700;
  text-decoration: none;
  color: #222;
  font-size: 18px;
}

.mib-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mib-nav a {
  text-decoration: none;
  color: #555;
  font-size: 13px;
  padding: 4px 0;
}

.mib-nav a:hover {
  text-decoration: underline;
}

/* ============== HERO (MODIFICAT COMPLET PE JUSTIFY + FULL WIDTH) ============== */

.mib-hero {
  background: #f1f3f8;
  padding: 32px 0 28px;
}

.mib-hero-inner {
  display: block;          /* << NU MAI ESTE GRID, NU MAI E 2 COLOANE */
  width: 100%;
}

.mib-hero-text {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: justify;     /* << JUSTIFY PE TOATE ECRANELE */
  text-justify: inter-word;
}

.mib-hero-text h1 {
  font-size: 26px;
  margin: 0 0 12px;
  text-align: left;        /* titlul rămâne lizibil */
}

.mib-hero-text p {
  font-size: 15px;
  margin: 0 0 10px;
  text-align: justify;     /* << justify și pe paragrafe */
  text-justify: inter-word;
}

.mib-hero-image {
  margin-top: 20px;
}

.mib-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* ============== SECȚIUNI GENERALE ============== */

.mib-main {
  min-height: 60vh;
}

.mib-section {
  padding: 32px 0;
  background: #fafafa;
}

.mib-section-alt {
  background: #ffffff;
}

.mib-section h2 {
  font-size: 22px;
  margin: 0 0 12px;
}

.mib-section h3 {
  font-size: 17px;
  margin: 18px 0 8px;
}

.mib-section p {
  margin: 0 0 10px;
  font-size: 15px;
}

/* ============== GRID 2 COLS TEXT ============== */

.mib-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* ============== FAQ ============== */

.mib-faq-item {
  margin-bottom: 18px;
}

/* ============== GALERIE IMAGINI ============== */

.mib-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: flex-start;
  margin-top: 14px;
}

.mib-gallery-grid figure {
  margin: 0;
}

.mib-gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.mib-gallery-grid figcaption {
  font-size: 13px;
  margin-top: 6px;
  color: #555;
}

/* ============== FOOTER COMPACT ============== */

.mib-footer {
  background: #111;
  color: #eee;
  padding: 10px 0 24px !important;
  font-size: 13px;
  line-height: 1.3;
}

.mib-footer-text {
  margin: 2px 0 !important;
}

/* Link WhatsApp în footer */
.mib-footer-text a {
  color: inherit !important;
  text-decoration: none !important;
  font-weight: 700;
}

/* ============== BUTOANE WHATSAPP ============== */

.btn-wa-hero-mib,
.btn-wa-evaluare-mib,
.btn-wa-evaluare-section {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: #138c34;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  white-space: normal;
  text-align: center;
}

.btn-wa-hero-mib:hover,
.btn-wa-evaluare-mib:hover,
.btn-wa-evaluare-section:hover {
  background: #0f6e29;
}

/* ============== BUTON FLOTANT WHATSAPP ============== */

.btn-wa-floating-mib {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #047857 !important;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  max-width: 220px;
  z-index: 9999;
}

.btn-wa-floating-mib:hover {
  background: #065f46 !important;
}

/* ============== MEDIA QUERIES ============== */

@media (max-width: 768px) {

  .mib-hero {
    padding-top: 24px;
  }

  .mib-hero-text h1 {
    font-size: 22px;
  }

  .mib-header .mib-container {
    align-items: flex-start;
  }

  .mib-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .mib-nav a {
    font-size: 12px;
  }
}

@media (min-width: 769px) {
  .mib-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mib-hero-text h1 {
    font-size: 28px;
  }
}

/* BUTON FLOTANT — VERSIUNEA FINALĂ */
.wa-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #059669;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  max-width: 420px;
  text-align: center;
}

.wa-float:hover {
  background: #065f46;
}

.wa-float .wa-icon {
  flex-shrink: 0;
}

.wa-float .wa-text {
  width: 100%;
  text-align: center;
  font-weight: 500;
}

@media (max-width: 640px) {
  .wa-float {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    justify-content: center;
    padding: 14px;
  }
}
