/*
Theme Name: Apa Prod 2026 — Interfață nouă
Theme URI: https://apaprod.ro
Author: SC Apa Prod SA
Author URI: https://apaprod.ro
Description: Tema oficială SC Apa Prod SA — Servicii de apă și canalizare, județul Hunedoara
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: apaprod
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a2540;
  --navy-mid:   #0d3a62;
  --blue:       #1565c0;
  --blue-light: #2979cc;
  --blue-pale:  #eef4fc;
  --cyan:       #0288d1;
  --white:      #ffffff;
  --gray-bg:    #f4f7fb;
  --gray-border:#dde8f5;
  --gray-text:  #6a8099;
  --text:       #1a2a3a;
  --amber:      #f59e0b;
  --amber-bg:   #fff9e6;
  --amber-text: #92400e;
  --green:      #2e7d32;
  --green-bg:   #e8f5e9;
  --red:        #c62828;
  --red-bg:     #fce8e8;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 4px rgba(10,37,64,.08);
  --shadow-md:  0 4px 16px rgba(10,37,64,.12);

  --font-sans: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-serif: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--gray-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.ap-topbar {
  background: var(--navy);
  color: #8fb4d4;
  font-size: 12.5px;
  padding: 7px 0;
}
.ap-topbar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ap-topbar-left { display: flex; align-items: center; gap: 16px; }
.ap-topbar-right { display: flex; align-items: center; gap: 6px; }
.ap-topbar a {
  color: #8fb4d4;
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.ap-topbar a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.ap-topbar .divider { color: #2a4a66; }
.ap-lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid #2a4a66;
}
.ap-lang-btn {
  font-size: 11px;
  font-weight: 700;
  color: #8fb4d4;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: .05em;
  transition: color .15s, background .15s;
  text-decoration: none !important;
}
.ap-lang-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.ap-lang-btn.active { color: #fff; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.ap-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.admin-bar .ap-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .ap-header {
    top: 46px;
  }
}
.ap-header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  gap: 16px;
}
.ap-logo { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.ap-logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ap-logo-icon img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
.ap-logo-icon svg { width: 26px; height: 26px; fill: white; }
.ap-logo-img { height: 92px; width: auto; display: block; flex-shrink: 0; }
.ap-logo-text strong {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy);
  display: block;
  line-height: 1.1;
}
.ap-logo-text span { font-size: 11px; color: var(--gray-text); letter-spacing: .04em; }

.ap-nav { display: flex; align-items: center; gap: 2px; }
.ap-nav > li { position: relative; }
.ap-nav > li > a {
  font-size: 13.5px;
  font-weight: 500;
  color: #3a5068;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: block;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.ap-nav > li > a:hover,
.ap-nav > li.current-menu-item > a,
.ap-nav > li.current-menu-ancestor > a {
  background: var(--blue-pale);
  color: var(--navy);
  text-decoration: none;
}
.ap-nav .has-children > a::after {
  content: '▾';
  font-size: 10px;
  margin-left: 4px;
  opacity: .6;
}
.ap-nav-mobile-only { display: none; }
.ap-nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  margin-left: 6px;
}
.ap-nav-cta:hover { background: #0d47a1 !important; text-decoration: none; }

/* Dropdown */
.ap-nav .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
.ap-nav .has-children:hover .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ap-nav .sub-menu li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: #3a5068;
  border-radius: var(--radius-sm);
  transition: background .12s;
}
.ap-nav .sub-menu li a:hover { background: var(--blue-pale); color: var(--navy); text-decoration: none; }

/* Mobile menu toggle */
.ap-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
}


/* ============================================================
   SEARCH TOGGLE + MODAL
   ============================================================ */
.ap-search-toggle {
  background: none;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--navy);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.ap-search-toggle:hover { background: var(--blue-pale); color: var(--blue); }
.ap-search-toggle[aria-expanded="true"] { background: var(--blue-pale); color: var(--blue); }

/* Modal */
.ap-search-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.ap-search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,37,64,.55);
  backdrop-filter: blur(3px);
}
.ap-search-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 24px;
  animation: ap-search-in .2s ease;
}
@keyframes ap-search-in {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ap-search-modal-form {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(10,37,64,.3);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .15s;
}
.ap-search-modal-form:focus-within {
  border-color: var(--blue);
}

.ap-search-modal-icon {
  padding: 0 4px 0 20px;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ap-search-modal-form:focus-within .ap-search-modal-icon { color: var(--blue); }

.ap-search-modal-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 18px;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  padding: 18px 16px;
  min-width: 0;
}
.ap-search-modal-input::placeholder { color: var(--gray-text); }

.ap-search-modal-submit {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 18px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.ap-search-modal-submit:hover { background: #0d47a1; }

.ap-search-modal-close {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-top: 14px;
  transition: background .15s;
}
.ap-search-modal-close:hover { background: rgba(255,255,255,.25); }
.ap-search-modal-close span {
  font-size: 11px;
  opacity: .75;
  background: rgba(255,255,255,.2);
  border-radius: 3px;
  padding: 1px 6px;
}

/* Searchform.php (pagina rezultate goale) */
.ap-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.ap-search-form:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,.1);
  background: var(--white);
}
.ap-search-form .ap-icon { color: var(--gray-text); flex-shrink: 0; }
.ap-search-form input[type="search"] {
  flex: 1; border: none; background: transparent;
  font-size: 15px; font-family: var(--font-sans);
  color: var(--text); outline: none; min-width: 0;
}
.ap-search-form input[type="search"]::placeholder { color: var(--gray-text); }
.ap-search-form button[type="submit"] {
  background: var(--blue); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 6px 18px;
  font-size: 13.5px; font-weight: 600; font-family: var(--font-sans);
  cursor: pointer; white-space: nowrap; transition: background .15s; flex-shrink: 0;
}
.ap-search-form button[type="submit"]:hover { background: #0d47a1; }

@media (max-width: 600px) {
  .ap-search-modal { padding-top: 80px; }
  .ap-search-modal-input { font-size: 16px; padding: 16px 12px; }
  .ap-search-modal-submit { padding: 16px 20px; }
}

/* ============================================================
   BANNER SISTĂRI ACTIVE
   ============================================================ */
/* ============================================================
   BARA DE STARE A REȚELEI
   Stă înaintea topbar-ului și a logo-ului, pe toate paginile.

   Deschisă la culoare, ca bara de sus de la Apa Nova: fundal alb,
   text gri, iar starea se citește din linia de accent de sus și din
   punctul colorat — verde când e liniște, roșu la alertă.

   Două fluxuri, tot ca la ei: în stânga întreruperile, în dreapta
   calitatea apei pe localitate.
   ============================================================ */
.ap-sistari-banner {
  background: var(--white);
  border-top: 2px solid #2ecc71;
  border-bottom: 1px solid var(--gray-border);
  padding: 9px 0;
}
.ap-sistari-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--gray-text);
}
.ap-topinfo-stare {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.ap-topinfo-calitate {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  max-width: 360px;
  padding-left: 20px;
  border-left: 1px solid var(--gray-border);
}
/* Vremea, ultima celulă din dreapta: aceeași construcție ca zona de calitate,
   ca bara să rămână un singur rând de informații despre zona de operare. */
.ap-topinfo-vreme {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-left: 20px;
  border-left: 1px solid var(--gray-border);
  white-space: nowrap;
}
.ap-topinfo-vreme .ap-vreme-ico { color: #5b7fa6; }
.ap-vreme-loc { font-weight: 600; color: var(--navy); }
.ap-vreme-loc::after { content: ' · '; color: #b8c9da; font-weight: 400; }
.ap-vreme-val { color: var(--gray-text); }
.ap-vreme-desc::before { content: ' · '; color: #b8c9da; }

.ap-topinfo-ico { color: var(--cyan); flex-shrink: 0; display: block; }
.ap-calitate-loc { font-weight: 600; color: var(--navy); }
.ap-calitate-loc::after { content: ' · '; color: #b8c9da; font-weight: 400; }
.ap-calitate-val { color: var(--gray-text); }

/* Eticheta de stare: aceleași majuscule rărite ca supratitlul din hero,
   ca bara să pară parte din același sistem. */
.ap-sistari-banner strong {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4a6076;
}
.ap-sistari-banner-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #2ecc71;
}

/* Textul care se rotește. Toate variantele stau în aceeași celulă de grilă,
   deci bara nu își schimbă înălțimea la schimbare. */
.ap-ticker { display: grid; min-width: 0; }
.ap-sistari-ticker {
  flex: 1;
  padding-left: 12px;
  border-left: 1px solid var(--gray-border);
}
.ap-ticker-item {
  grid-area: 1 / 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--gray-text);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease;
}
.ap-ticker-item.is-active { opacity: 1; visibility: visible; }
.ap-ticker-item:hover { color: var(--navy); text-decoration: underline; }
.ap-calitate-ticker .ap-ticker-item:hover { text-decoration: none; }
.ap-calitate-ticker .ap-ticker-item:hover .ap-calitate-loc { text-decoration: underline; }

/* Numărul de întreruperi e el însuși linkul către lista completă: e cea mai
   vizibilă parte a barei, deci acolo se dă clic. Marginile negative întind
   zona de clic în jurul textului fără să crească înălțimea barei. */
.ap-sistari-banner-count {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin: -5px -2px -5px -7px;
  padding: 5px 7px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color .15s ease;
}
.ap-sistari-banner-count:hover { background: var(--gray-bg); }
.ap-sistari-banner-count:hover strong { text-decoration: underline; }

/* ── Starea de alertă: accent roșu și punct care pulsează ── */
.ap-sistari-banner[role="alert"] { border-top-color: var(--red); }
.ap-sistari-banner[role="alert"] .ap-sistari-banner-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(198,40,40,.14);
  animation: ap-pulse 1.6s ease-in-out infinite;
}
.ap-sistari-banner[role="alert"] strong { color: var(--red); }
.ap-sistari-banner[role="alert"] .ap-sistari-ticker .ap-ticker-item { color: #8a5050; }
.ap-sistari-banner[role="alert"] .ap-sistari-ticker .ap-ticker-item:hover { color: var(--red); }
.ap-sistari-banner[role="alert"] .ap-sistari-banner-count:hover { background: rgba(198,40,40,.08); }

.ap-sistari-banner-count:focus-visible,
.ap-ticker-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (min-width: 901px) and (max-width: 1300px) {
  /* Butonul plutitor de accesibilitate (plugin) stă lipit de colțul din
     dreapta-sus. Peste 1300px rămâne în afara containerului; sub această
     lățime ar acoperi ultima celulă a barei, deci îi lăsăm loc. */
  .ap-sistari-banner-inner { padding-right: 46px; }
}

@media (max-width: 1150px) {
  /* Prima care cedează e descrierea vremii: temperatura singură spune
     aproape tot, iar textul lung ar împinge anunțul de întrerupere. */
  .ap-vreme-desc { display: none; }
}

@media (max-width: 1000px) {
  .ap-vreme-loc { display: none; }
}

@media (max-width: 900px) {
  /* Sub această lățime bara nu mai poate ține mai multe fluxuri pe un rând.
     Rămâne starea rețelei — informația urgentă; valorile de calitate se
     găsesc pe pagina dedicată, iar vremea nu e informație de operator. */
  .ap-topinfo-calitate,
  .ap-topinfo-vreme { display: none; }
}

@media (max-width: 600px) {
  .ap-sistari-ticker { padding-left: 10px; }
  .ap-sistari-banner strong { letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-ticker-item { transition: none; }
  .ap-sistari-banner[role="alert"] .ap-sistari-banner-dot { animation: none; }
}

@keyframes ap-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.85); }
}

/* Câmpul-capcană din formularele publice. Scos din ecran, nu `display:none`
   — unii boți ignoră câmpurile ascunse astfel. Dacă CSS-ul nu se încarcă,
   eticheta spune omului să-l lase gol. */
.ap-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   LAYOUT / CONTAINER
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }

/* ============================================================
   ALERT BANNER
   ============================================================ */
.ap-alert {
  padding: 11px 0;
  font-size: 13.5px;
  border-top: 3px solid var(--amber);
  background: var(--amber-bg);
  color: var(--amber-text);
}
/* Fără flex-wrap: pe mobil textul lung nu încăpea lângă pictogramă și cobora
   pe rândul următor, lăsând triunghiul singur. Acum textul se strânge
   (min-width: 0) și se încadrează pe mai multe rânduri lângă pictogramă,
   care rămâne în dreptul primului rând. */
.ap-alert .inner { display: flex; align-items: flex-start; gap: 10px; }
.ap-alert strong { font-weight: 600; }
.ap-alert a { color: var(--amber-text); font-weight: 600; text-decoration: underline; }
.ap-alert-ico { display: flex; align-items: center; flex-shrink: 0; height: 1lh; }
.ap-alert-text { flex: 1; min-width: 0; }

/* Cu două anunțuri, textele alternează în aceeași bandă. Mecanismul e cel de
   la bara de stare (.ap-ticker), dar acolo textul e alb pe fundal închis și
   tăiat la un rând — aici trebuie citit, deci se încadrează pe mai multe. */
.ap-alert .ap-ticker { flex: 1; min-width: 0; }
.ap-alert .ap-ticker-item {
  color: var(--amber-text);
  font-size: 13.5px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.ap-alert .ap-ticker-item:hover { color: var(--amber-text); text-decoration: none; }

/* ============================================================
   HERO
   ============================================================ */
.ap-hero {
  background: var(--navy);
  padding: 40px 0 36px;
  position: relative;
  overflow: hidden;
}
.ap-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(13,58,98,.6) 0%, transparent 70%),
              radial-gradient(ellipse 40% 50% at 10% 80%, rgba(13,61,112,.3) 0%, transparent 60%);
}
.ap-hero .inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ap-hero-content { display: flex; flex-direction: column; align-items: flex-start; }
.ap-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(21,101,192,.3);
  border: 1px solid #2979cc;
  color: #90caf9;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: 500;
}
.ap-hero-badge-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: #4fc3f7;
  animation: ap-pulse 1.8s ease-in-out infinite;
}
.ap-hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  color: #fff;
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.ap-hero-brand {
  color: #4fc3f7;
}
.ap-hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
  border-left: 2px solid rgba(41,121,204,.6);
  padding-left: 16px;
  font-style: italic;
}
.ap-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none !important;
}
.btn-primary:hover { background: #0d47a1; transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #90caf9 !important;
  border: 1px solid #2979cc;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none !important;
}
.btn-outline:hover { background: rgba(41,121,204,.15); }

.ap-hero-visual { display: flex; align-items: center; justify-content: center; }
.ap-hero-svg { width: 100%; max-width: 460px; }

/* ============================================================
   HERO CARUSEL — fotografie pe toată lățimea
   Hero-ul urcă sub topbar și antet, ca fotografia să treacă pe
   sub ele. Înălțimea grupului de sus o măsoară main.js și o pune
   în --ap-top-h; valoarea de rezervă acoperă cazul fără JS.
   ============================================================ */
/* Specificitate dublă intenționat: blocul RESPONSIVE de mai jos redefinește
   .ap-hero { padding: 40px 0 } și, la specificitate egală, ar câștiga fiind
   mai târziu în fișier — ceea ce adăuga o bandă goală sub fotografie. */
.ap-hero.ap-hero-full {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
  margin-top: calc(-1 * var(--ap-top-h, 150px));
}
.ap-hero.ap-hero-full::before { content: none; }

/* ── Hero cu video în buclă ─────────────────────────────────── */
/* Înălțimea nu se mai dă în vh „din ochi": primul ecran e împărțit între
   benzile de sus, hero și bara cu cifre, iar hero-ul ia exact ce rămâne.
   Valorile de rezervă acoperă cazul fără JS; `max()` ține hero-ul decent
   și pe ecrane foarte joase. `svh` e înălțimea mică a ferestrei — pe telefon
   exclude bara de adrese care se retrage la derulare. */
.ap-hero-video {
  display: flex;
  align-items: center;
  min-height: max(340px, calc(100vh  - var(--ap-above-h, 91px) - var(--ap-statbar-h, 102px)));
  min-height: max(340px, calc(100svh - var(--ap-above-h, 91px) - var(--ap-statbar-h, 102px)));
}
.ap-hero-media { position: absolute; inset: 0; overflow: hidden; }
.ap-hero-vid {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  display: block;
}
.ap-hero-video-body {
  position: relative;
  width: 100%;
  padding: calc(var(--ap-top-h, 150px) + 28px) 0 76px;
}

/* Pragurile de lățime nu mai fixează înălțimea hero-ului: formula de mai sus
   o deduce din spațiul rămas, iar pe ecran îngust benzile și bara cu cifre se
   rup pe mai multe rânduri, deci spațiul rămas e oricum altul. */
@media (max-width: 768px) {
  .ap-hero-video-body { padding-bottom: 60px; }
}

.ap-carousel { position: relative; }
.ap-carousel-track { display: grid; min-width: 0; }

.ap-carousel-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  /* Aceeași împărțire a primului ecran ca la hero-ul cu video. */
  min-height: max(340px, calc(100vh  - var(--ap-above-h, 91px) - var(--ap-statbar-h, 102px)));
  min-height: max(340px, calc(100svh - var(--ap-above-h, 91px) - var(--ap-statbar-h, 102px)));
  padding-top: calc(var(--ap-top-h, 150px) + 28px);
  padding-bottom: 96px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
}
.ap-carousel-slide.is-active { opacity: 1; visibility: visible; }

/* ── Fotografia de fundal ── */
.ap-carousel-visual { position: absolute; inset: 0; overflow: hidden; }
.ap-carousel-img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  display: block;
}
/* Apropiere lentă cât slide-ul e pe ecran */
.ap-carousel-slide.is-active .ap-carousel-img { animation: ap-kenburns 9s ease-out forwards; }
@keyframes ap-kenburns {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

/* Stratul întunecat: fără el textul alb nu are contrast pe fotografie.
   Mai dens sus (pentru antet) și jos (pentru puncte). */
.ap-carousel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
              rgba(6,20,36,.78) 0%,
              rgba(6,20,36,.44) 36%,
              rgba(6,20,36,.56) 72%,
              rgba(6,20,36,.88) 100%);
}

/* ── Textul, centrat peste fotografie ── */
.ap-carousel-body { position: relative; width: 100%; }
/* Și hero-ul cu video: altfel badge-ul rămâne lipit de marginea stângă, iar
   titlul și paragraful au doar cutia centrată (margin auto), nu și textul. */
.ap-carousel-body .container,
.ap-hero-video-body .container { text-align: center; }

.ap-carousel-kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9fd0f0;
  margin-bottom: 16px;
}
.ap-carousel-title {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0 auto 20px;
  max-width: 980px;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
h1.ap-carousel-title { font-size: clamp(38px, 6vw, 76px); }
h2.ap-carousel-title { font-size: clamp(29px, 4.4vw, 56px); }
.ap-accent { color: #4fc3f7; }

.ap-carousel-text {
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.75;
  color: rgba(255,255,255,.88);
  max-width: 660px;
  margin: 0 auto 34px;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.ap-hero-full .ap-hero-btns { justify-content: center; }
.ap-hero-full .ap-hero-badge {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

/* ── Butoanele din hero: mai mari, colțuri de 4px ── */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
}
.btn-hero-solid {
  background: var(--blue);
  color: #fff !important;
  border: 2px solid var(--blue);
}
.btn-hero-solid:hover { background: #0d47a1; border-color: #0d47a1; transform: translateY(-2px); }
.btn-hero-ghost {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.7);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; transform: translateY(-2px); }
.btn-hero:focus-visible { outline: 2px solid #4fc3f7; outline-offset: 3px; }

/* ── Punctele, jos, centrate peste fotografie ── */
.ap-carousel-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  display: flex;
  justify-content: center;
}
.ap-carousel-dots { display: flex; align-items: center; gap: 10px; }
.ap-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.75);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.ap-carousel-dot:hover { background: rgba(255,255,255,.45); }
.ap-carousel-dot.is-active { background: #fff; border-color: #fff; transform: scale(1.25); }
.ap-carousel-dot:focus-visible { outline: 2px solid #4fc3f7; outline-offset: 3px; }

/* ── Antetul transparent peste fotografie (doar prima pagină) ── */
.home .ap-topbar {
  position: relative;
  z-index: 1001;
  background: rgba(6,20,36,.45);
}
.home .ap-header {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: none !important;
  transition: background .25s, border-color .25s;
}
.home .ap-header .ap-logo-text strong { color: #fff; }
.home .ap-header .ap-logo-text span   { color: rgba(255,255,255,.72); }
.home .ap-header .ap-nav > li > a     { color: rgba(255,255,255,.92); }
.home .ap-header .ap-nav > li > a:hover,
.home .ap-header .ap-nav > li.current-menu-item > a,
.home .ap-header .ap-nav > li.current-menu-ancestor > a {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.home .ap-header .ap-search-toggle,
.home .ap-header .ap-menu-toggle { color: #fff; }

/* După derulare antetul redevine opac, altfel ar sta alb pe alb. */
.home .ap-header.is-stuck {
  background: var(--white);
  border-bottom-color: var(--gray-border);
  box-shadow: var(--shadow-sm) !important;
}
.home .ap-header.is-stuck .ap-logo-text strong { color: var(--navy); }
.home .ap-header.is-stuck .ap-logo-text span   { color: var(--gray-text); }
.home .ap-header.is-stuck .ap-nav > li > a     { color: #3a5068; }
.home .ap-header.is-stuck .ap-nav > li > a:hover,
.home .ap-header.is-stuck .ap-nav > li.current-menu-item > a,
.home .ap-header.is-stuck .ap-nav > li.current-menu-ancestor > a {
  background: var(--blue-pale);
  color: var(--navy);
}
.home .ap-header.is-stuck .ap-search-toggle,
.home .ap-header.is-stuck .ap-menu-toggle { color: inherit; }

/* ── Banda cu statistici, sub hero ── */
.ap-statbar { background: var(--navy); padding: 24px 0; }
.ap-statbar .ap-hero-stats {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .ap-carousel-slide { padding-bottom: 76px; }
  .btn-hero { padding: 13px 24px; font-size: 13.5px; }
  .ap-statbar .ap-hero-stats { justify-content: flex-start; }
}

/* ── Ecrane joase: bara cu cifre trebuie să intre în primul ecran ──────
   Pe laptop, benzile de sus plus antetul iau deja ~240px din înălțime.
   Formula de min-height lasă hero-ului doar restul, dar conținutul lui
   (titlu de 76px pe două rânduri, paddinguri de 176/76px) cerea singur
   642px și împingea cifrele sub margine. Aici se strânge conținutul —
   după înălțimea ferestrei, nu după lățime: un laptop de 1920 lățime are
   aceeași criză de spațiu vertical ca unul de 1366.
   Pragurile nu ating telefonul în portret (înălțime peste 820px), dar prind
   telefonul în peisaj, unde criza e aceeași. */
@media (max-height: 820px) {
  .ap-hero-video-body { padding: calc(var(--ap-top-h, 150px) + 12px) 0 24px; }
  .ap-carousel-slide  { padding-top: calc(var(--ap-top-h, 150px) + 12px); padding-bottom: 56px; }
  .ap-hero-badge { margin-bottom: 12px; }
  h1.ap-carousel-title { font-size: clamp(28px, 4vw, 48px); }
  h2.ap-carousel-title { font-size: clamp(25px, 3.2vw, 38px); }
  .ap-carousel-title { margin-bottom: 14px; line-height: 1.06; }
  .ap-carousel-text { font-size: 15.5px; line-height: 1.6; margin-bottom: 18px; }
  .btn-hero { padding: 12px 26px; }
  .ap-statbar { padding: 18px 0; }
  .ap-hero-stat-num { font-size: 26px; }
}

@media (max-height: 620px) {
  .ap-hero-video-body { padding: calc(var(--ap-top-h, 150px) + 6px) 0 14px; }
  .ap-carousel-slide  { padding-top: calc(var(--ap-top-h, 150px) + 6px); padding-bottom: 40px; }
  .ap-hero-badge { margin-bottom: 8px; }
  h1.ap-carousel-title { font-size: clamp(26px, 3.4vw, 38px); }
  .ap-carousel-title { margin-bottom: 10px; }
  .ap-carousel-text { font-size: 15px; margin-bottom: 14px; }
  .btn-hero { padding: 10px 22px; font-size: 13.5px; }
  .ap-statbar { padding: 14px 0; }
  .ap-hero-stat-num { font-size: 23px; }
}

/* ── Telefon: cifrele în grilă 2×2 ────────────────────────────────────
   Pe un rând nu încap: `flex-wrap` le rupea 3+1, iar a patra („24/7")
   rămânea singură și tăiată. Grila fixă face bara mai înaltă cu un rând
   (171px în loc de 102px), iar hero-ul se strânge singur, fiindcă
   --ap-statbar-h e măsurat în main.js — dar min-height singur nu ajunge:
   pe telefon antetul are 211px, deci paddingurile hero-ului se string și
   ele, altfel rândul de jos al cifrelor cădea sub margine cu 51px.
   Vine după blocurile de mai sus ca paddingul de aici să fie cel final. */
@media (max-width: 600px) {
  .ap-statbar .ap-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
  }
  .ap-hero-video-body { padding: calc(var(--ap-top-h, 150px) + 10px) 0 22px; }
  .ap-carousel-slide  { padding-top: calc(var(--ap-top-h, 150px) + 10px); padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-carousel-slide { transition: none; }
  .ap-carousel-slide.is-active .ap-carousel-img { animation: none; }
  .btn-hero:hover { transform: none; }
}

/* Animație plutire picătură — squish la aterizare */
.ap-drop-float {
  animation: ap-drop-float 7s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes ap-drop-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

/* Valuri interior */
.ap-wave-1 {
  animation: ap-wave-scroll 5s linear infinite;
  transform-box: fill-box;
  transform-origin: left center;
}
.ap-wave-2 {
  animation: ap-wave-scroll 8s linear infinite;
  transform-box: fill-box;
  transform-origin: left center;
}
.ap-wave-3 {
  animation: ap-wave-scroll 11s linear infinite;
  transform-box: fill-box;
  transform-origin: left center;
}
@keyframes ap-wave-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-200px); }
}

/* Luciu pulsant */
.ap-drop-shine {
  animation: ap-shine 6s ease-in-out infinite;
}
@keyframes ap-shine {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.65; }
}

/* Bulă care urcă în picătură */
.ap-bubble {
  animation: ap-bubble 5.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center bottom;
}
.ap-bubble-2 {
  animation: ap-bubble 5.5s ease-in-out infinite 2.5s;
  transform-box: fill-box;
  transform-origin: center bottom;
}
@keyframes ap-bubble {
  0%   { transform: translateY(0);     opacity: 0; }
  15%  { opacity: 0.55; }
  85%  { opacity: 0.2; }
  100% { transform: translateY(-130px); opacity: 0; }
}

/* Ondulații care se extind */
.ap-ripple-1 { animation: ap-ripple 5s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.ap-ripple-2 { animation: ap-ripple 5s ease-out infinite 1.6s; transform-box: fill-box; transform-origin: center; }
.ap-ripple-3 { animation: ap-ripple 5s ease-out infinite 3.2s; transform-box: fill-box; transform-origin: center; }
@keyframes ap-ripple {
  0%   { transform: scale(.7); opacity: .35; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Picături mici care cad */
.ap-mini-drop   { animation: ap-mini-fall 6.5s ease-in infinite; }
.ap-mini-drop-2 { animation: ap-mini-fall 6.5s ease-in infinite 3s; }
@keyframes ap-mini-fall {
  0%   { transform: translateY(-8px); opacity: 0; }
  15%  { opacity: .6; }
  80%  { opacity: .25; }
  100% { transform: translateY(18px); opacity: 0; }
}
.ap-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.ap-hero-stat { display: flex; flex-direction: column; gap: 4px; }
.ap-hero-stat-num {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-family: var(--font-serif);
  letter-spacing: -.01em;
}
.ap-hero-stat-label {
  font-size: 11.5px;
  color: #8fb4d4;
  letter-spacing: .04em;
}

.ap-hero-img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.ap-hero-img-placeholder {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 48px;
}

/* Quick links bar */
.ap-quicklinks {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 0;
}
.ap-quicklinks .inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ap-quicklink-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-right: 1px solid var(--gray-border);
  color: var(--navy) !important;
  transition: background .15s;
  text-decoration: none !important;
}
.ap-quicklink-item:last-child { border-right: none; }
.ap-quicklink-item:hover { background: var(--blue-pale); }
.ap-quicklink-icon {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.ap-quicklink-item strong { font-size: 13px; font-weight: 600; display: block; font-family: var(--font-sans); }
.ap-quicklink-item span { font-size: 11.5px; color: var(--gray-text); }

/* ============================================================
   CARDS
   ============================================================ */
.ap-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  padding: 24px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.ap-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ap-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.ap-card h3 { font-size: 15px; font-family: var(--font-sans); margin-bottom: 8px; }
.ap-card p { font-size: 13px; color: var(--gray-text); line-height: 1.6; }
.ap-card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.ap-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ap-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ap-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ============================================================
   NEWS / POSTS
   ============================================================ */
.ap-news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.ap-news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ap-news-card-date {
  background: var(--blue);
  color: #fff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}
.ap-news-card-body { padding: 18px 20px; }
.ap-news-card h3 { font-size: 15px; font-family: var(--font-sans); font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.ap-news-card p { font-size: 13px; color: var(--gray-text); line-height: 1.6; }
.ap-news-card a { color: var(--text); text-decoration: none; }
.ap-news-card a:hover h3 { color: var(--blue); }
.ap-news-card-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* Sistări list item */
.ap-sistare-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  border-left: 4px solid var(--red);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ap-sistare-date {
  min-width: 52px;
  text-align: center;
  background: var(--red-bg);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
}
.ap-sistare-date .day { font-size: 20px; font-weight: 700; color: var(--red); line-height: 1; }
.ap-sistare-date .mon { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: .06em; }
.ap-sistare-item h4 { font-size: 14px; font-family: var(--font-sans); font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.ap-sistare-item p { font-size: 12.5px; color: var(--gray-text); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.ap-section-label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 6px;
}
.ap-section-title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; }
.ap-section-desc { color: var(--gray-text); font-size: 15px; margin-bottom: 32px; max-width: 560px; }
.ap-section-header { margin-bottom: 32px; }
.ap-section-header.flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.ap-section-header .see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

/* ============================================================
   INFO STRIP
   ============================================================ */
.ap-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ap-info-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.ap-info-card h4 { font-size: 14px; font-family: var(--font-sans); font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.ap-info-card p { font-size: 13px; color: var(--gray-text); line-height: 1.5; }
.ap-info-card a { color: var(--blue); font-size: 12.5px; font-weight: 600; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.ap-page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 48px 0;
}
.ap-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}
.ap-sidebar-menu { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-border); overflow: hidden; }
.ap-sidebar-menu li a {
  display: block;
  padding: 12px 18px;
  font-size: 13.5px;
  color: #3a5068;
  border-bottom: 1px solid var(--gray-border);
  transition: background .12s, color .12s;
}
.ap-sidebar-menu li:last-child a { border-bottom: none; }
.ap-sidebar-menu li a:hover,
.ap-sidebar-menu li.active a {
  background: var(--blue-pale);
  color: var(--blue);
  text-decoration: none;
}
.ap-page-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  padding: 36px 40px;
}
.ap-page-content h1 { font-size: 28px; margin-bottom: 20px; }
.ap-page-content h2 { font-size: 22px; margin: 32px 0 14px; }
.ap-page-content h3 { font-size: 18px; margin: 24px 0 10px; }
.ap-page-content p { margin-bottom: 16px; font-size: 15px; line-height: 1.8; }
.ap-page-content ul { margin: 0 0 16px 20px; list-style: disc; }
.ap-page-content ul li { font-size: 15px; line-height: 1.8; margin-bottom: 6px; }
.ap-page-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.ap-page-content th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.ap-page-content td { padding: 10px 14px; border-bottom: 1px solid var(--gray-border); }
.ap-page-content tr:nth-child(even) td { background: var(--gray-bg); }
.ap-page-content a { color: var(--blue); font-weight: 500; }
.ap-page-content .wp-block-file a { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-pale); color: var(--blue); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; }

/* Breadcrumbs */
.ap-breadcrumb {
  font-size: 13px;
  color: var(--gray-text);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 0;
  background: var(--white);
}
.ap-breadcrumb a { color: var(--blue); }
.ap-breadcrumb span { margin: 0 6px; }

/* ============================================================
   MODAL SESIZARE
   ============================================================ */
.ap-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,37,64,.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ap-modal-overlay.open { display: flex; }
.ap-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(10,37,64,.25);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  animation: ap-modal-in .2s ease;
}
@keyframes ap-modal-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ap-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.ap-modal-header h2 { font-size: 20px; margin: 0; }
.ap-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray-text);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background .12s;
}
.ap-modal-close:hover { background: var(--gray-bg); color: var(--navy); }
.ap-modal-body { padding: 24px; }

/* ============================================================
   FORMULAR SESIZARE
   ============================================================ */
.ap-sesizare-form { display: flex; flex-direction: column; gap: 18px; }
.ap-form-row { display: flex; flex-direction: column; gap: 18px; }
.ap-form-2col { flex-direction: row; gap: 18px; }
.ap-form-2col .ap-form-group { flex: 1; }
.ap-form-group { display: flex; flex-direction: column; gap: 6px; }
.ap-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.ap-form-group label span { color: var(--red); }
.ap-form-group label small { font-weight: 400; color: var(--gray-text); }
.ap-form-group input,
.ap-form-group select,
.ap-form-group textarea {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.ap-form-group input:focus,
.ap-form-group select:focus,
.ap-form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}
.ap-form-group textarea { resize: vertical; min-height: 120px; }

.ap-sesizare-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 8px;
}
.ap-sesizare-ok  { background: var(--green-bg); border: 1px solid #a5d6a7; color: var(--green); }
.ap-sesizare-err { background: var(--amber-bg); border: 1px solid #fcd34d; color: var(--amber-text); }

@media (max-width: 600px) {
  .ap-form-2col { flex-direction: column; }
}

/* ============================================================
   GALLERY + LIGHTBOX
   ============================================================ */
.ap-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.ap-gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.ap-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.ap-gallery-item:hover img { transform: scale(1.05); }

.ap-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.ap-lightbox.active { display: flex; }
.ap-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  user-select: none;
}
.ap-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s;
}
.ap-lightbox-close:hover { opacity: 1; }
.ap-lightbox-prev,
.ap-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.ap-lightbox-prev { left: 16px; }
.ap-lightbox-next { right: 16px; }
.ap-lightbox-prev:hover,
.ap-lightbox-next:hover { background: rgba(255,255,255,.25); }
.ap-lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.55);
  font-size: 13px;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ap-footer {
  background: var(--navy);
  color: #8fb4d4;
  padding: 48px 0 0;
  margin-top: 64px;
}
.ap-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.ap-footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ap-footer-logo img { height: 36px; filter: brightness(0) invert(1); }
.ap-footer-logo strong { font-family: var(--font-serif); font-size: 18px; color: #fff; }
.ap-footer-desc { font-size: 13px; line-height: 1.75; margin-bottom: 20px; }
.ap-footer-contact { font-size: 13px; line-height: 2; }
.ap-footer-contact strong { color: #fff; }
.ap-footer h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-family: var(--font-sans); font-weight: 700; }
.ap-footer ul li { margin-bottom: 8px; }
.ap-footer ul li a { font-size: 13px; color: #8fb4d4; transition: color .12s; }
.ap-footer ul li a:hover { color: #fff; text-decoration: none; }
.ap-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #4a6880;
  flex-wrap: wrap;
  gap: 8px;
}
.ap-footer-bottom a { color: #4a6880; }
.ap-footer-bottom a:hover { color: #8fb4d4; }

/* ============================================================
   SINGLE POST / SISTARE
   ============================================================ */
.ap-post-header {
  background: var(--navy);
  padding: 40px 0;
  color: #fff;
}
.ap-post-header .tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #90caf9;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ap-post-header h1 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.ap-post-header .meta { font-size: 13px; color: #8fb4d4; }

/* ============================================================
   ARCHIVE / SISTARI PAGE
   ============================================================ */
.ap-archive-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 28px 0;
}
.ap-archive-header h1 { font-size: 28px; }
.ap-archive-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ap-filter-btn {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  color: #3a5068;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.ap-filter-btn.active,
.ap-filter-btn:hover {
  background: var(--blue-pale);
  border-color: var(--blue-light);
  color: var(--blue);
}

/* ============================================================
   WIDGETS / SIDEBAR
   ============================================================ */
.widget { margin-bottom: 24px; }
.widget-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 14px;
  font-family: var(--font-sans);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ap-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ap-footer-grid { grid-template-columns: 1fr 1fr; }
  .ap-hero .inner { grid-template-columns: 1fr; }
  .ap-hero-visual { display: none; }
  .ap-quicklinks .inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ap-topbar .inner { justify-content: center; }
  .ap-topbar-right { flex-wrap: wrap; justify-content: center; }
  .ap-nav { display: none; }
  /* `align-items: stretch` anulează `center`-ul moștenit din bara orizontală:
     pe coloană, acela strângea fiecare rând la lățimea textului, iar linia de
     despărțire de mai jos se oprea și ea în mijlocul ecranului. */
  .ap-nav.open { display: flex; flex-direction: column; align-items: stretch; position: fixed; inset: 0; background: var(--white); padding: 80px 24px 24px; z-index: 999; overflow-y: auto; }
  .ap-nav.open > li > a { font-size: 16px; padding: 14px; border-bottom: 1px solid var(--gray-border); }
  .ap-nav.open .sub-menu { position: static; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; border: none; border-left: 3px solid var(--blue-pale); margin-left: 16px; }
  .ap-menu-toggle { display: block; position: relative; z-index: 1001; }
  .ap-nav-cta { display: none !important; }
  .ap-nav.open .ap-nav-mobile-only { display: block; }

  /* ── Meniul deschis: text închis pe foaia albă ──────────────────────
     Panoul mobil acoperă tot ecranul cu alb opac, dar pe prima pagină
     antetul e transparent peste fotografie, deci legăturile sunt albe
     (regula `.home .ap-header .ap-nav > li > a`). Rezultatul era alb pe
     alb: meniul se deschidea gol. Nici derularea nu-l salva, fiindcă
     meniul deschis blochează derularea, deci `is-stuck` nu se activa.
     Selectorii pornesc de la `body`, ca să treacă de specificitatea lui
     `.home .ap-header ...` și ca să prindă și butoanele din antet, care
     stau deasupra panoului, dar în afara lui. */
  body.ap-nav-open .ap-header .ap-nav > li > a,
  body.ap-nav-open .ap-header .ap-nav .sub-menu a { color: #3a5068; }

  body.ap-nav-open .ap-header .ap-nav > li > a:hover,
  body.ap-nav-open .ap-header .ap-nav > li.current-menu-item > a,
  body.ap-nav-open .ap-header .ap-nav > li.current-menu-ancestor > a {
    background: var(--blue-pale);
    color: var(--navy);
  }

  body.ap-nav-open .ap-header .ap-menu-toggle,
  body.ap-nav-open .ap-header .ap-search-toggle { color: var(--navy); }

  /* ── Butonul de închidere se leagă de ecran, nu de antet ────────────
     Cu meniul deschis, butonul nu mai aparține antetului: e „închide” pentru
     foaia albă care acoperă tot ecranul. Lăsat în antet, poziția lui depindea
     de cât era derulată pagina — la începutul paginii antetul stă sub bara de
     stare și topbar (~210px), iar panoul își lăsa deasupra exact atâta spațiu
     cât să nu fie acoperit de el. Ieșea un gol de ~300px, care se strângea la
     80px după derulare, deci meniul se deschidea altfel de fiecare dată.
     Fixat în colțul ecranului, punctul de pornire e același oriunde ai fi.

     Cei 60px din dreapta ocolesc butonul plutitor al pluginului de
     accesibilitate, care ocupă 48px lipiți de marginea din dreapta sus. */
  body.ap-nav-open .ap-header .ap-menu-toggle {
    position: fixed;
    top: 11px;
    right: 60px;
    z-index: 1003;
  }
  /* Bara de administrare WordPress e de 46px sub 782px lățime. */
  body.admin-bar.ap-nav-open .ap-header .ap-menu-toggle { top: 57px; }

  /* Bara de sus are z-index 1001 pe prima pagină, ca să stea peste fotografie.
     Antetul e `sticky` cu z-index 1000, deci face context de stivuire: panoul
     de meniu, fiind în interiorul lui, nu putea urca singur peste bară —
     oricât z-index i-am fi dat. Se ridică antetul întreg, doar cât e deschis,
     altfel bara acoperea primele intrări din meniu. */
  body.ap-nav-open .ap-header { z-index: 1002; }
  .ap-grid-4, .ap-grid-3, .ap-grid-2 { grid-template-columns: 1fr; }
  .ap-page-layout { grid-template-columns: 1fr; }
  .ap-sidebar { position: static; }
  .ap-quicklinks .inner { grid-template-columns: 1fr 1fr; }
  .ap-footer-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .ap-hero { padding: 40px 0; }
  .ap-footer-bottom { flex-direction: column; text-align: center; }
  .ap-page-content { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .ap-quicklinks .inner { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}

/* ============================================================
   PDD STRIP
   ============================================================ */
.ap-pdd-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 8px 0;
}

/* ============================================================
   SECȚIUNE APLICAȚIE MOBILĂ
   ============================================================ */
.ap-app-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #0a2540 0%, #0d3a62 50%, #0a2540 100%);
  position: relative;
  overflow: hidden;
}
.ap-app-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(41,182,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.ap-app-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(21,101,192,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ap-app-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: center;
}

/* Ilustrație telefon */
.ap-app-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-app-phone-link {
  display: block;
  cursor: pointer;
}
.ap-app-phone-svg {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.4));
  animation: ap-phone-float 4s ease-in-out infinite;
  transition: filter .2s ease;
}
.ap-app-phone-link:hover .ap-app-phone-svg {
  filter: drop-shadow(0 32px 56px rgba(0,0,0,0.55));
}
@keyframes ap-phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.ap-app-glow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 160px;
  height: 30px;
  background: radial-gradient(ellipse, rgba(41,182,246,0.35) 0%, transparent 70%);
  animation: ap-glow-float 4s ease-in-out infinite;
}
@keyframes ap-glow-float {
  0%, 100% { transform: translateX(-50%) scale(1);   opacity: 1; }
  50%       { transform: translateX(-50%) scale(0.55); opacity: 0.35; }
}

/* Conținut text */
.ap-app-label {
  color: #90caf9 !important;
}
.ap-app-title {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.ap-app-desc {
  color: #8fb4d4;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 28px;
}
.ap-app-desc strong { color: #e3f2fd; }

.ap-app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.ap-app-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b3d1ec;
  font-size: 14px;
  font-weight: 500;
}
.ap-app-features li svg {
  color: #29b6f6;
  flex-shrink: 0;
}

/* Badge-uri store */
.ap-store-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ap-store-badge {
  display: inline-block;
  text-decoration: none !important;
  transition: transform .2s ease, opacity .2s ease;
}
.ap-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 900px) {
  .ap-app-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .ap-app-visual { order: -1; }
  .ap-app-phone-svg { width: 180px; }
  .ap-app-features {
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }
  .ap-store-badges { justify-content: center; }
}
@media (max-width: 480px) {
  .ap-app-section { padding: 48px 0; }
  .ap-app-features { grid-template-columns: 1fr; }
  .ap-store-badges { flex-direction: column; align-items: center; }
  .ap-pdd-strip { flex-direction: column; text-align: center; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--gray-text); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-blue { background: var(--blue-pale); color: var(--blue); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-amber { background: var(--amber-bg); color: var(--amber-text); }
/* Fix nav bullets */
.ap-nav li {
  list-style: none !important;
}

.ap-nav ul,
.ap-nav li {
  margin: 0;
  padding: 0;
  list-style: none !important;
}

nav ul, nav li {
  list-style: none !important;
}
/* Ascunde text logo */
.logo-text {
  display: none !important;
}

/* Logo imagine mai mare */
.logo-img {
  height: 55px !important;
  width: auto !important;
}
/* Ascunde textul logo */
.ap-logo-text {
  display: none !important;
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */

/* Banner */
.ap-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: #8fb4d4;
  padding: 16px 0;
  z-index: 9990;
  border-top: 3px solid var(--blue);
  box-shadow: 0 -4px 24px rgba(10,37,64,.25);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.ap-cookie-banner.visible { transform: translateY(0); }
.ap-cookie-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ap-cookie-text { flex: 1; min-width: 200px; }
.ap-cookie-text strong { color: #fff; font-size: 14px; display: block; margin-bottom: 3px; }
.ap-cookie-text p  { font-size: 12.5px; line-height: 1.55; margin: 0; }
.ap-cookie-text a  { color: #8fb4d4; text-decoration: underline; }
.ap-cookie-text a:hover { color: #fff; }
.ap-cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* Buttons */
.ap-cookie-btn {
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: background .15s, opacity .15s;
  white-space: nowrap;
  line-height: 1;
}
.ap-cookie-accept  { background: var(--blue); color: #fff; }
.ap-cookie-accept:hover  { background: #0d47a1; }
.ap-cookie-reject  { background: transparent; color: #8fb4d4; border: 1px solid rgba(255,255,255,.2); }
.ap-cookie-reject:hover  { background: rgba(255,255,255,.06); color: #fff; }
.ap-cookie-settings { background: transparent; color: #8fb4d4; border: 1px solid rgba(255,255,255,.2); }
.ap-cookie-settings:hover { background: rgba(255,255,255,.06); color: #fff; }
.ap-cookie-save    { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.ap-cookie-save:hover    { background: var(--blue-pale); }

/* Overlay */
.ap-cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,37,64,.55);
  z-index: 9991;
  backdrop-filter: blur(2px);
}
.ap-cookie-overlay.open { display: block; }

/* Panel */
.ap-cookie-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(.97);
  width: min(560px, calc(100vw - 32px));
  max-height: 90vh;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(10,37,64,.25);
  z-index: 9992;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
.ap-cookie-panel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.ap-cookie-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-border);
  flex-shrink: 0;
}
.ap-cookie-panel-header h3 { font-size: 17px; color: var(--navy); font-weight: 700; }
.ap-cookie-panel-close {
  background: none; border: none; cursor: pointer;
  color: var(--gray-text); font-size: 18px; line-height: 1;
  padding: 4px 6px; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.ap-cookie-panel-close:hover { background: var(--gray-bg); color: var(--text); }
.ap-cookie-panel-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.ap-cookie-panel-intro {
  font-size: 13.5px;
  color: var(--gray-text);
  margin-bottom: 20px;
  line-height: 1.6;
}
.ap-cookie-panel-intro a { color: var(--blue); }

/* Categories */
.ap-cookie-category {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-border);
}
.ap-cookie-category:last-child { border-bottom: none; }
.ap-cookie-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.ap-cookie-cat-info { display: flex; flex-direction: column; gap: 3px; }
.ap-cookie-cat-info strong { font-size: 14px; color: var(--text); }
.ap-cookie-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
}
.ap-cookie-cat-sub { font-size: 12px; color: var(--gray-text); }
.ap-cookie-category p { font-size: 13px; color: var(--gray-text); line-height: 1.6; }
.ap-cookie-locked {
  font-size: 16px;
  color: var(--green);
  flex-shrink: 0;
}

/* Toggle switch */
.ap-toggle { position: relative; display: inline-flex; cursor: pointer; flex-shrink: 0; }
.ap-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ap-toggle-track {
  width: 44px; height: 24px;
  background: var(--gray-border);
  border-radius: 12px;
  transition: background .2s;
  position: relative;
}
.ap-toggle input:checked + .ap-toggle-track { background: var(--blue); }
.ap-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: left .2s;
}
.ap-toggle input:checked + .ap-toggle-track .ap-toggle-thumb { left: 23px; }
.ap-toggle input:focus-visible + .ap-toggle-track { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Panel footer */
.ap-cookie-panel-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--gray-border);
  flex-shrink: 0;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 600px) {
  .ap-cookie-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ap-cookie-actions { width: 100%; }
  .ap-cookie-actions .ap-cookie-btn { flex: 1; text-align: center; }
  .ap-cookie-panel-footer { flex-direction: column; }
  .ap-cookie-panel-footer .ap-cookie-btn { width: 100%; text-align: center; padding: 12px; }
}

/* ============================================================
   WPBAKERY FALLBACK
   ============================================================ */
.ap-vc-text { margin-bottom: 16px; }
.ap-vc-text h1, .ap-vc-text h2, .ap-vc-text h3,
.ap-vc-text h4, .ap-vc-text h5, .ap-vc-text h6 { margin: 20px 0 10px; }
.ap-vc-text p  { margin-bottom: 12px; font-size: 15px; line-height: 1.8; }
.ap-vc-text a  { color: var(--blue); }
.ap-vc-text ul, .ap-vc-text ol { margin: 0 0 12px 20px; }
.ap-vc-text li { margin-bottom: 6px; font-size: 15px; line-height: 1.7; }
.ap-vc-text img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ============================================================
   LUCIDE ICONS & ANIMAȚII
   ============================================================ */

/* Iconiță inline (topbar, footer contact, nav) */
.ap-icon {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}

/* Iconiță în container (quicklinks, cards, info strip) */
.ap-quicklink-icon svg,
.ap-card-icon svg,
.ap-info-icon svg {
  display: block;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ap-card:hover .ap-card-icon svg,
.ap-info-card:hover .ap-info-icon svg {
  transform: scale(1.3);
}
/* La butoanele rapide mărirea e discretă — acolo animația o face desenul iconiței */
.ap-quicklink-item:hover .ap-quicklink-icon svg { transform: scale(1.1); }

/* ============================================================
   ICONIȚE ANIMATE
   Formele vin din apaprod_anim_icon() (functions.php). Fiecare
   contur are pathLength="100", deci aceeași animație de desenare
   funcționează pe orice formă, indiferent de lungimea ei reală.
   Animația se declanșează la hover pe butonul părinte — buton
   rapid, card de serviciu sau fișă din banda de informații.
   ============================================================ */
.ap-quicklink-icon .ap-ai-svg,
.ap-card-icon .ap-ai-svg,
.ap-info-icon .ap-ai-svg { display: block; overflow: visible; }

/* În repaus toate conturile sunt desenate complet. */
.ap-ai-stripe, .ap-ai-chip, .ap-ai-line, .ap-ai-ring, .ap-ai-drop,
.ap-ai-bill, .ap-ai-page, .ap-ai-board,
.ap-ai-row1, .ap-ai-row2, .ap-ai-row3,
.ap-ai-win1, .ap-ai-win2, .ap-ai-win3, .ap-ai-win4 {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

/* Transformările pe elemente SVG au nevoie de reper propriu. */
.ap-ai-card, .ap-ai-pen, .ap-ai-coin, .ap-ai-wrench, .ap-ai-mini {
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes ap-ai-draw  { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes ap-ai-blink { 0%, 100% { opacity: 1; } 35% { opacity: .15; } }
@keyframes ap-ai-swipe { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(2px); } }
@keyframes ap-ai-write { 0% { transform: translate(-2.5px, 2.5px); } 100% { transform: translate(0, 0); } }
@keyframes ap-ai-coin  { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.35); } }
@keyframes ap-ai-turn  { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-20deg); } 70% { transform: rotate(6deg); } }
@keyframes ap-ai-fall {
  0%   { transform: translateY(-3px); opacity: 0; }
  25%  { opacity: 1; }
  70%  { transform: translateY(8px);  opacity: 1; }
  100% { transform: translateY(8px);  opacity: 0; }
}

/* ── Plată online: cardul alunecă, banda și cipul se trasează ── */
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-plata .ap-ai-card   { animation: ap-ai-swipe .55s ease; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-plata .ap-ai-stripe { animation: ap-ai-draw .45s ease forwards; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-plata .ap-ai-chip   { animation: ap-ai-draw .45s .12s ease forwards; }

/* ── Transmitere sesizare: pixul scrie linia ── */
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-sesizare .ap-ai-line { animation: ap-ai-draw .45s ease forwards; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-sesizare .ap-ai-pen  { animation: ap-ai-write .45s ease; }

/* ── Informații utile: cercul se desenează, punctul clipește ── */
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-info .ap-ai-ring { animation: ap-ai-draw .55s ease forwards; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-info .ap-ai-dot  { animation: ap-ai-blink .55s ease; }

/* ── Calitatea apei: o picătură cade înăuntru ── */
.ap-ai-apa .ap-ai-mini { opacity: 0; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-apa .ap-ai-drop { animation: ap-ai-draw .6s ease forwards; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-apa .ap-ai-mini { animation: ap-ai-fall .8s ease-in; }

/* ── Tarife: bancnota se trasează, moneda crește ── */
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-tarife .ap-ai-bill  { animation: ap-ai-draw .5s ease forwards; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-tarife .ap-ai-coin  { animation: ap-ai-coin .6s ease; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-tarife .ap-ai-edge1 { animation: ap-ai-blink .6s ease; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-tarife .ap-ai-edge2 { animation: ap-ai-blink .6s .1s ease; }

/* ── Formulare: rândurile se completează pe rând ── */
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-formulare .ap-ai-row1 { animation: ap-ai-draw .35s ease forwards; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-formulare .ap-ai-row2 { animation: ap-ai-draw .35s .13s ease forwards; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-formulare .ap-ai-row3 { animation: ap-ai-draw .35s .26s ease forwards; }

/* ── Relații cu publicul: ferestrele se aprind de sus în jos ── */
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-institutie .ap-ai-win1 { animation: ap-ai-blink .4s ease; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-institutie .ap-ai-win2 { animation: ap-ai-blink .4s .1s ease; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-institutie .ap-ai-win3 { animation: ap-ai-blink .4s .2s ease; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-institutie .ap-ai-win4 { animation: ap-ai-blink .4s .3s ease; }

/* ── Branșamente: cheia strânge racordul ── */
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-bransament .ap-ai-wrench { animation: ap-ai-turn .6s ease; }

/* ── Achiziții publice: rândurile din listă se completează ── */
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-achizitii .ap-ai-row1 { animation: ap-ai-draw .35s ease forwards; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-achizitii .ap-ai-row2 { animation: ap-ai-draw .35s .14s ease forwards; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-achizitii .ap-ai-bul1 { animation: ap-ai-blink .4s ease; }
:is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-achizitii .ap-ai-bul2 { animation: ap-ai-blink .4s .14s ease; }

@media (prefers-reduced-motion: reduce) {
  :is(.ap-quicklink-item, .ap-card, .ap-info-card):hover .ap-ai-svg * { animation: none !important; }
  .ap-quicklink-item:hover .ap-quicklink-icon svg,
  .ap-card:hover .ap-card-icon svg,
  .ap-info-card:hover .ap-info-icon svg { transform: none; }
}

/* Pulse pentru iconițele inline la hover pe link-ul părinte */
.ap-topbar a:hover .ap-icon,
.ap-nav-cta:hover .ap-icon,
.ap-footer-contact div .ap-icon {
  animation: none;
}

.ap-topbar a:hover .ap-icon,
.ap-nav-cta:hover .ap-icon {
  animation: ap-icon-pulse 0.35s ease-in-out;
}

@keyframes ap-icon-pulse {
  0%, 100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.35) translateY(-2px); }
}

/* Buton hamburger */
.ap-menu-toggle svg {
  display: block;
  transition: transform 0.2s ease;
}
.ap-menu-toggle:hover svg {
  transform: scale(1.15);
}

/* ============================================================
   WORDPRESS STANDARD — align, paginare, galerie
   ============================================================ */
.alignleft  { float: left;  margin: 0 20px 12px 0; max-width: 50%; }
.alignright { float: right; margin: 0 0 12px 20px; max-width: 50%; }
.aligncenter, .aligncenter img { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.alignwide  { width: calc(100% + 64px); margin-left: -32px; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--gray-text); text-align: center; margin-top: 6px; }

.gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.gallery-item { flex: 1 1 auto; }
.gallery-item img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

/* Paginare WordPress */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  margin: 0 3px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.page-numbers.current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.page-numbers:hover:not(.current) {
  background: var(--blue-pale);
  border-color: var(--blue);
  color: var(--blue);
}
.page-numbers.dots { border: none; background: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* ============================================================
   FORMULAR AUDIENȚĂ — ap-field
   ============================================================ */
.ap-field { display: flex; flex-direction: column; gap: 6px; }
.ap-field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.ap-field input,
.ap-field select,
.ap-field textarea {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  box-sizing: border-box;
}
.ap-field input:focus,
.ap-field select:focus,
.ap-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}
.ap-field textarea { resize: vertical; }

/* ============================================================
   NOTIFICĂRI (banner + modal email)
   ============================================================ */
.ap-notify-section h3 { font-size: 16px; margin-bottom: 6px; }
.ap-notify-section p { font-size: 13.5px; color: var(--gray-text); line-height: 1.6; margin-bottom: 14px; }
.ap-notify-status { font-size: 13px; color: var(--gray-text); margin-top: 10px; min-height: 1.2em; }
.ap-notify-checks { flex-direction: row !important; gap: 20px !important; }
.ap-notify-checks label { font-size: 13.5px; font-weight: 400 !important; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ap-notify-checks input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  border: 1px solid var(--gray-border) !important;
  background: #fff !important;
}

.ap-notify-gdpr-label {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400 !important;
}
.ap-notify-gdpr-text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text) !important;
  font-weight: 400;
}
.ap-notify-gdpr-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  border: 1px solid var(--gray-border) !important;
  background: #fff !important;
}

#ap-notify-modal .ap-modal { max-width: 760px; }

.ap-locality-picker { position: relative; }
.ap-locality-picker input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.ap-locality-suggestions {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(10, 37, 64, .12);
}
.ap-locality-suggestions.open { display: block; }
.ap-locality-suggestion {
  padding: 9px 14px;
  font-size: 13.5px;
  cursor: pointer;
}
.ap-locality-suggestion:hover { background: #eef4fc; }
.ap-locality-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.ap-locality-selected:empty { margin-top: 0; }
.ap-locality-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef4fc;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 8px 5px 12px;
  border-radius: 20px;
}
.ap-locality-chip button {
  border: none;
  background: none;
  color: var(--blue);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.ap-notify-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
