/* Schimbă imaginea din HERO (poți folosi același nume ca în main.css dacă vrei) */
.acasa-hero {
  background-image: url('img/acasa-mm.webp');
}

/* Ajustări headline pe mobil */
@media (max-width: 480px) {
  
  .logo {
  height: 90px;
  max-width: 280px;
}

}

/* Mic polish pe carduri, pentru această pagină */
.servicii-carduri .card-link .card-label {
  font-size: 1.25rem;
}


.titlu-principal {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.subtitlu-hero {
  font-size: 1.3rem;
  color: #f8f8f8;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}


.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f4ba5;
  margin-left: 12px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .site-title {
    font-size: 1.2rem;
  }
}


/* === HERO FINAL OVERRIDE (pune asta ULTIM în acasa.css) === */

/* țintim simultan id + clasă pentru specificitate mare */
section#acasa.acasa-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;

  background-image: url('img/hero.webp') !important; /* root path + important */
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* overlay pentru lizibilitate, tot cu specificitate mare */
section#acasa.acasa-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  pointer-events: none;
}

/* asigurăm că textul e deasupra overlay-ului */
section#acasa.acasa-hero .hero-overlay {
  position: relative;
  z-index: 1;
}

/* titlurile din HERO (dacă le-ai adăugat) */
.titlu-principal {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.subtitlu-hero {
  font-size: 1.3rem;
  color: #f8f8f8;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}


/* === HERO — lizibilitate + aerisire ==================================== */
section#acasa.acasa-hero::after{
  /* puțin mai mult contrast peste imagine */
  background: rgba(0,0,0,0.55);
}

section#acasa.acasa-hero .hero-overlay{
  /* card central mai aerisit + lățime controlată */
  max-width: min(920px, 92%);
  padding: clamp(24px, 3.2vw, 52px);
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
}

.titlu-principal{
  /* mai mare, dar fluid pe toate ecranele */
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

.subtitlu-hero{
  font-size: clamp(1.05rem, 1rem + 0.6vw, 1.35rem);
  line-height: 1.65;
  margin: 0 auto 8px;
  max-width: 48ch;
  color: #f4f6ff;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

.casmb-info{
  font-size: clamp(0.98rem, 0.9rem + 0.5vw, 1.2rem);
  line-height: 1.55;
  margin: 4px auto 0;
  max-width: 60ch;
  color: #ffffff;
  opacity: .92;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

.hero-button{
  margin-top: 24px;
  padding: clamp(12px, 1.2vw, 16px) clamp(22px, 2.2vw, 34px);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  border-radius: 10px;
}

/* === Contact table – responsive (mobile stack) === */
@media (max-width: 640px) {
  .contact-table table,
  .contact-table thead,
  .contact-table tbody,
  .contact-table th,
  .contact-table td,
  .contact-table tr {
    display: block;
    width: 100%;
  }

  .contact-table thead {
    /* ascundem headerul clasic pe mobil */
    position: absolute;
    left: -9999px;
  }

  .contact-table tr {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
  }

  .contact-table td {
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    padding: 12px 12px 12px 44%;
    min-height: 44px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .contact-table td:last-child {
    border-bottom: 0;
  }

  /* etichetele din stânga fiecărei celule */
  .contact-table td::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 12px;
    width: 38%;
    font-weight: 700;
    color: #ffffff;
    opacity: 0.9;
  }
  .contact-table td:nth-child(1)::before { content: "Tip"; }
  .contact-table td:nth-child(2)::before { content: "Persoană"; }
  .contact-table td:nth-child(3)::before { content: "Telefon / Email"; }

  /* linkuri care pot fi lungi (email) */
  .contact-table a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

.footer-logos {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 40px;
  object-fit: contain;
  
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-logos img:hover {
  opacity: 1;
}

.site-title {
  font-size: clamp(1rem, 1.2vw + 1rem, 1.8rem);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #1f4ba5;
  margin-left: 10px;
  line-height: 1.3;
  display: inline-block;
  max-width: 70vw;   /* să nu iasă din ecran */
  white-space: normal; /* permite să sară pe 2 rânduri */
}


.hero-subinfo {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: #f0f0f0; /* alb-gri deschis, să contrasteze pe fundal */
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hero-highlight {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1abc9c; /* turcoaz evidențiat */
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: inline-block;
  padding: 0.2em 0.6em;
  background: rgba(0, 0, 0, 0.3); /* opțional, ca să iasă și mai tare */
  border-radius: 6px;
}


.hero-subinfo {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff; /* alb simplu, lizibil pe fundal */
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
