/* ======= RESET + GENERAL ======= */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f8f8f8;
  color: #333;
}

/* ======= HEADER ======= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #004080;
  padding: 10px 30px;
  color: #fff;
  flex-wrap: wrap;
  gap: 10px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 50px; margin-right: 10px; }
nav { display: flex; flex-wrap: wrap; gap: 10px; }
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  transition: background .3s;
}
nav a:hover { background: #0066cc; border-radius: 5px; }

/* ======= SLIDER + SELECTOR ======= */
.sectiune-slider-selector {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
}
.slider-modern {
  flex: 0 0 70%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.slides {
  display: flex;
  transition: transform .5s ease;
  width: 100%;
  will-change: transform;
}
.slides > * { min-width: 100%; flex-shrink: 0; }
.slides img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.prev, .next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4);
  color: #fff;
  font-size: 24px;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
}
.prev { left: 10px; }
.next { right: 10px; }

.selector-zona {
  flex: 0 0 28%;
  background: #f9f9f9;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.selector-zona h3 { font-size: 18px; margin-bottom: 15px; text-align: center; }
.selector-zona label,
.selector-zona select,
.selector-zona button {
  width: 100%; margin-bottom: 12px; font-size: 14px;
}
.selector-zona select,
.selector-zona button {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.selector-zona button {
  background: #007acc;
  color: #fff;
  border: none;
  cursor: pointer;
}
.selector-zona button:hover { background: #005f99; }

@media (max-width:768px) {
  .sectiune-slider-selector { flex-direction: column; align-items: center; }
  .slider-modern, .selector-zona { width: 90%; max-width: 100%; }
}
@media (max-width:480px) {
  .prev, .next { padding: 6px; font-size: 20px; }
}

/* ==== MODAL AUTENTIFICARE ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,.5);
}
.modal-content {
  background: #fff;
  margin: 80px auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.close {
  position: absolute;
  right: 16px; top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.tab-buttons {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}
.tab-buttons button {
  padding: 10px;
  width: 50%;
  border: none;
  background: #eee;
  cursor: pointer;
  font-weight: bold;
}
.tab-buttons .active {
  background: #007acc;
  color: #fff;
}

.tab-content input, .tab-content select {
  width: 100%; margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.tab-content button {
  width: 100%;
  padding: 10px;
  background: #007acc;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.tab-content button:hover { background: #005f99; }
.tab-content[aria-hidden="true"] { display: none !important; }

/* ======= SECȚIUNE SERVICII ======= */
.servicii-populare { background: #f4f8fc; padding: 40px 0; text-align: center; }
.servicii-container {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 20px;
}
.serviciu-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  overflow: hidden;
  width: 200px;
  transition: transform .3s, box-shadow .3s;
}
.serviciu-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.serviciu-box img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}
.serviciu-box p { margin: 10px; font-size: 14px; color: #333; }

/* ======= AJUTORBOT (widget) ======= */
#ajb-widget {
  position: fixed;
  right: 16px; bottom: 16px;
  width: 320px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eee;
  display: flex; flex-direction: column;
  max-height: 80vh;
  z-index: 998;
}
#ajb-widget .ajb-header {
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
#ajb-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin: 8px;
  background: #fff;
}
#ajb-widget .ajb-input {
  display: flex; gap: 8px; padding: 8px;
}
#ajb-widget .ajb-input input {
  flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 8px;
}
#ajb-widget .ajb-input button {
  padding: 8px 12px;
  border: 0; border-radius: 8px;
  cursor: pointer;
  background: #004080; color: #fff;
}
#ajb-widget.minimized .ajb-body { display: none; }

@media (max-width:600px) {
  #ajb-widget {
    width: calc(100vw - 24px);
    left: 12px; right: 12px;
    bottom: 16px;
    max-height: 80dvh;
  }
}

/* ===== HERO SEARCH ===== */
.hero-search-band { background: #004080; padding: 16px 0; }
.hero-search {
  max-width: 640px; margin: 0 auto;
  display: flex; gap: 8px;
}
.hero-search input {
  flex: 1; padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.hero-search button {
  padding: 10px 16px;
  border-radius: 8px;
  border: 0;
  background: #fff;
  color: #004080;
  font-weight: 600;
  cursor: pointer;
}
.hero-search button:hover { filter: brightness(.95); }
@media (max-width:600px) { .hero-search { flex-direction: column; } }

/* ===== ACCESIBILITATE ===== */
nav a:focus-visible,
.prev:focus-visible,
.next:focus-visible,
#ajb-widget .ajb-input button:focus-visible,
#ajb-widget .ajb-header:focus-visible,
.tab-buttons button:focus-visible,
.tab-content button:focus-visible,
.selector-zona button:focus-visible,
#authModal .close:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}