/* RESET & BASE */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  padding-top: 110px; /* header mai înalt -> mai mult spațiu sus */
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #f5faff;
  color: #0a1b32;
}

/* NAV BAR – logo mai mare + bară mai înaltă */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 30px;
  height: 100px;

  background: transparent;   /* inițial transparent */
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.top-bar.scrolled {
  background: rgba(255, 255, 255, 0.95); /* fundal alb semitransparent */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.top-bar.scrolled .nav-link {
  color: #0a1b32;  /* linkuri mai vizibile pe alb */
}


.logo {
  height: 120px;    /* logo mai mare */
  max-width: 380px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.logo:hover { transform: scale(1.05); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }


nav { display: flex; gap: 28px; align-items: center; }
.nav-desktop .nav-link { background: #edf3ff; }
.nav-link {
  padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none;
  color: #1f4ba5; transition: all .25s ease;
}
.nav-link:hover { background: #eaf1ff; color: #0a1b32; box-shadow: 0 2px 6px rgba(31,75,165,.1); }
/* evidențiere opțională pe Contact */
.nav-desktop .nav-link[href="#contact"] { background: #1f4ba5; color: #fff; }
.nav-desktop .nav-link[href="#contact"]:hover { background:#13357e; color:#fff; }

/* MOBILE NAV */
.menu-toggle {
  display: none; background: #1f4ba5; color: #fff; border: none;
  padding: 8px; border-radius: 6px; cursor: pointer;
}
.menu-toggle svg rect { fill: #fff; transition: all .3s ease; }
.menu-toggle.active svg rect:nth-child(1) { transform: rotate(45deg) translate(17px,17px); }
.menu-toggle.active svg rect:nth-child(2) { opacity: 0; }
.menu-toggle.active svg rect:nth-child(3) { transform: rotate(-45deg) translate(17px,-17px); }

.nav-mobile {
  position: absolute; top: 86px; left: 15px; right: 15px; z-index: 999;
  background: #fff; border-radius: 12px; flex-direction: column; align-items: stretch;
  overflow: hidden; max-height: 0; opacity: 0; pointer-events: none;
  box-shadow: 0 10px 20px rgba(0,0,0,.08); transition: max-height .35s ease, opacity .3s ease;
}
.nav-mobile.active { max-height: 500px; opacity: 1; pointer-events: auto; padding: 6px 0; }
.nav-mobile .nav-link { width: 100%; padding: 16px 24px; border-bottom: 1px solid #f0f0f0; background: #fff; }

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  .nav-desktop { display: none; }
  .top-bar { height: 88px; padding: 10px 20px; }
  .logo { height: 64px; max-width: 240px; }
}

/* BADGE */
.badge {
  display: inline-block; background: #1f4ba5; color: #fff;
  font-size: .8rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; letter-spacing: .3px;
}

/* GRID */

@media (max-width: 900px){ .grid-echipa{ grid-template-columns:1fr; } }

/* CARDS & LINKS */
.card-link { display:block; border-radius: 24px; overflow:hidden; position:relative; box-shadow:0 18px 50px rgba(0,0,0,.15); transition:.35s ease; }
.card-link:hover { transform: scale(1.04) translateY(-6px); box-shadow:0 24px 60px rgba(0,0,0,.25); }
.image-wrapper { position:relative; height:360px; overflow:hidden; }
.image-wrapper img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .5s ease; }
.card-link:hover .image-wrapper img { transform: scale(1.08); }
.card-label { position:absolute; inset:auto 0 0 0; padding:20px 24px; font-weight:700; font-size:1.2rem; color:#fff; background:rgba(0,0,0,.5); backdrop-filter: blur(4px); }

/* HERO – fără chenar/box; imagine + gradient de lizibilitate */
.acasa-hero {
  min-height: 100vh; /* să ocupe tot ecranul */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: #fff;

  background: url('img/hero.webp') center center / cover no-repeat;
}

.acasa-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* overlay întunecat pt. text lizibil */
}
.hero-overlay {
  position: relative; /* să fie peste overlay */
  z-index: 1;
}

.acasa-hero h1 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin: 10px 0 12px; line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.casmb-info { color: #ffdddd; font-size: 1.05rem; text-shadow: 0 2px 10px rgba(0,0,0,.35); }

/* BUTOANE */
.hero-button, .contact-button {
  display:inline-block; background:#fff; color:#1f4ba5; padding:14px 28px; border-radius:10px; font-weight:700; text-decoration:none; transition:.25s;
}
.hero-button:hover, .contact-button:hover { background:#dbe7ff; color:#0a1b32; box-shadow:0 4px 10px rgba(0,0,0,.1); }

/* SECȚIUNE SERVICII CARDURI (fără header-blur-box) */
.servicii-carduri { background:#2c5bbd url('img/texture.webp') repeat; color:#fff; padding: 140px 20px 110px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
 }
.servicii-titlu { text-align:center; max-width: 900px; margin: 0 auto 70px; }
.servicii-titlu h2 { font-size: clamp(1.6rem, 4.4vw, 2.6rem); margin: 10px 0; }
.servicii-titlu h3 { font-weight: 400; opacity: .95; }
.servicii-titlu h3 span { color: #dce5ff; }
.servicii-carduri-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 70px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 900px) {
  .servicii-carduri-grid { grid-template-columns: 1fr; gap: 50px; }
  .image-wrapper { height: 240px; }
}


/* CONTACT (Acasă) */
.contact-section { background:#1f375f url('img/contact-texture.webp') repeat; color:#fff; padding: 120px 20px; text-align:center; }
.contact-container { display:flex; flex-wrap:wrap; gap: 50px; justify-content:center; align-items:center; max-width: 1200px; margin:0 auto; }
.contact-info { flex:1 1 380px; max-width:520px; }
.contact-table { flex: 1 1 420px; width: 100%; }
.contact-table table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.06); border-radius: 12px; overflow: hidden; }
.contact-table th, .contact-table td { padding: 14px 18px; text-align:left; border-bottom:1px solid rgba(255,255,255,.12); color:#fff; }
.contact-table th { background: rgba(255,255,255,.08); font-weight:700; }
.contact-table a { color: #aad4ff; text-decoration: none; }
.contact-table a:hover { text-decoration: underline; }
.contact-map { flex: 1 1 420px; height: 300px; min-width: 300px; border-radius: 16px; overflow:hidden; box-shadow:0 12px 30px rgba(0,0,0,.12); }

/* FOOTER */
.footer { background:#0a1b32; color:#e0e0e0; padding: 60px 20px 30px; text-align:center; }
.footer-content { display:flex; flex-wrap:wrap; justify-content:center; gap: 60px; margin-bottom: 30px; }
.footer-links, .footer-info { min-width: 220px; text-align:left; }
.footer-links h4, .footer-info h4 { color:#fff; margin-bottom: 12px; }
.footer-links a { display:block; color:#aad4ff; text-decoration:none; margin-bottom:8px; }
.footer-links a:hover { color:#fff; }
.footer-bottom { font-size:.9rem; color:#9aa4b2; }
.footer-bottom a { color:#aad4ff; }

/* ANIMATIONS + Back-to-top */
.animate-up { opacity:0; transform: translateY(40px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.animate-up.visible { opacity:1; transform: translateY(0); }
/* === Back to Top — GLOBAL === */
#btn-back-to-top {
  position: fixed; bottom: 20px; right: 20px; width: 48px; height: 48px;
  background: #1f4ba5; color:#fff; border:none; border-radius: 50%; cursor:pointer;
  font-size: 1.3rem; opacity: 0; pointer-events: none; transition: opacity .35s ease;
  z-index: 99999; /* era 999 */
}
#btn-back-to-top.show { opacity: 1; pointer-events: auto; }



/* RESPONSIVE NAVIGATION */
@media (max-width: 1024px) {  /* era 768px */
  .top-bar { padding: 10px 20px; }
  .logo { height: 140px; max-width: 360px; }
  .menu-toggle { display: flex; }
  .nav-desktop { display: none; }
  nav { ... } /* restul rămâne la fel */
}

@media (min-width: 1025px) {
  .menu-toggle,
  .nav-mobile { display: none !important; }
}


/* ===== Footer – bandă legală (responsive) ===== */
.footer-legal{
  margin-top: 20px;
  padding: 18px 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: grid;
  gap: 16px 24px;
  grid-template-columns: repeat(4, minmax(0,1fr));
  text-align: left;
}
.footer-legal h5{
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1rem;
}
.footer-legal p{
  margin: 0;
  color: #cfe0ff;
  line-height: 1.65;
  font-size: .95rem;
}
.footer-legal a{ color: #aad4ff; text-decoration: none; }
.footer-legal a:hover{ text-decoration: underline; }
.footer-legal .links { display: flex; flex-wrap: wrap; gap: 10px; }

.footer-legal .visit-main{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1f4ba5;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(31,75,165,.25);
}
.footer-legal .visit-main:hover{
  background: #13357e;
  text-decoration: none;
}
.footer-legal .visit-main span{
  white-space: nowrap;
}

/* Breakpoints */
@media (max-width: 1000px){
  .footer-legal{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-legal{ grid-template-columns: 1fr; }
  .footer-legal .visit-main{ width: 100%; justify-content: center; }
}


.cookie-banner{
  position: fixed; inset: auto 16px 16px 16px;
  background: #0a1b32; color:#fff; border-radius: 12px; padding: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25); z-index: 999999;
  display: grid; gap: 12px; align-items: center;
}
.cookie-banner p{ margin: 0; color: #e6eeff; }
.cookie-banner a{ color: #aad4ff; }
.cookie-banner .actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost{ background:#edf3ff; color:#0a1b32; padding:10px 16px; border-radius:10px; font-weight:700; border:0; cursor:pointer; }
.btn-primary{ background:#1f4ba5; color:#fff; padding:10px 16px; border-radius:10px; font-weight:700; border:0; cursor:pointer; }
@media (min-width: 720px){
  .cookie-banner{ grid-template-columns: 1fr auto; }
}
