/* ==============================
   CANONICAL NAV — acoperisuri-premium
   Loaded on all pages via wp_enqueue_style
============================== */

#acp-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  transition: box-shadow 0.3s;
}

#acp-navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

.acp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.acp-nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.acp-nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.acp-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0; padding: 0;
}

.acp-nav-links > li { position: relative; }

.acp-nav-links > li > a,
.acp-nav-links > li > button.acp-dropdown-btn {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.acp-nav-links > li > a:hover,
.acp-nav-links > li > button.acp-dropdown-btn:hover { color: #cc0000; }

.acp-nav-links > li > a.active,
.acp-nav-links > li > button.acp-dropdown-btn.active { color: #cc0000; }

/* Dropdown */
.acp-has-dropdown { position: relative; }

.acp-dropdown-btn::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.7;
}

.acp-dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 230px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-top: 3px solid #cc0000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 100;
  list-style: none;
  margin: 0; padding: 0;
}

.acp-has-dropdown:hover .acp-dropdown-menu,
.acp-has-dropdown.open .acp-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.acp-dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  transition: background 0.2s, color 0.2s;
}

.acp-dropdown-menu li a:hover { background: #cc0000; color: #fff; }

/* CTA button */
.acp-nav-cta {
  background: #cc0000 !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 4px;
  transition: background 0.2s !important;
  text-decoration: none;
}

.acp-nav-cta:hover { background: #a80000 !important; }

/* Hamburger */
.acp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.acp-hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #111;
  transition: transform 0.3s, opacity 0.3s;
}

.acp-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.acp-hamburger.open span:nth-child(2) { opacity: 0; }
.acp-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.acp-mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 999;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.acp-mobile-nav.open { display: block; }

.acp-mobile-nav ul {
  padding: 16px 0;
  list-style: none;
  margin: 0;
}

.acp-mobile-nav ul li a {
  display: block;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s, color 0.2s;
}

.acp-mobile-nav ul li a:hover { background: #cc0000; color: #fff; }

/* Mobile accordion — Servicii */
.acp-mob-acc-btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.acp-mob-acc-btn:hover { background: #f8f8f8; color: #cc0000; }
.acp-mob-acc-btn.open  { color: #cc0000; }

.acp-mob-acc-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.acp-mob-acc-btn.open .acp-mob-acc-chevron { transform: rotate(180deg); }

.acp-mob-acc-menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;   /* override .acp-mobile-nav ul { padding: 16px 0 } */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.acp-mob-acc-menu li a {
  display: block;
  padding: 12px 32px 12px 48px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.2s, color 0.2s;
}

.acp-mob-acc-menu li a:hover { background: #cc0000; color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .acp-nav-links { display: none; }
  .acp-hamburger { display: flex; }
}

/* ==============================
   CANONICAL FOOTER
============================== */

#acp-footer {
  background: #1a0000;
  padding: 64px 0 0;
  font-family: 'Montserrat', sans-serif;
}

.acp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.acp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.acp-footer-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}

.acp-footer-logo-img {
  height: 56px;
  width: auto;
  max-width: 100%;
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
}

.acp-footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.acp-footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.acp-footer-col ul { list-style: none; margin: 0; padding: 0; }

.acp-footer-col ul li { margin-bottom: 10px; }

.acp-footer-col ul li a,
.acp-footer-col ul li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.acp-footer-col ul li a:hover { color: #cc0000; }

/* ANPC / SAL badges */
.acp-footer-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
}

.acp-footer-badges a {
  display: inline-block;
  transition: opacity 0.2s;
}

.acp-footer-badges a:hover { opacity: 0.8; }

.acp-footer-badges img {
  display: block;
  height: 50px;
  width: auto;
}

.acp-footer-bottom {
  padding-bottom: 28px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.acp-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.acp-footer-legal a {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s;
}
.acp-footer-legal a:hover {
  color: rgba(255,255,255,0.75);
}
@media (max-width: 600px) {
  .acp-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .acp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .acp-footer-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */
#acp-cookie-banner {
  display: none; /* shown via JS */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1A0000;
  border-top: 3px solid #CC0000;
  padding: 20px 32px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.45);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#acp-cookie-banner.acp-cookie-banner--visible {
  transform: translateY(0);
}
#acp-cookie-banner.acp-cookie-banner--hiding {
  transform: translateY(100%);
}
.acp-cookie-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
}
.acp-cookie-text a {
  color: #CC0000;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.acp-cookie-text a:hover {
  color: #E60000;
}
.acp-cookie-text strong {
  color: #fff;
  font-weight: 700;
}
.acp-cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}
#acp-cookie-accept {
  background: #CC0000;
  color: #fff;
  border: none;
  padding: 11px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
#acp-cookie-accept:hover {
  background: #E60000;
}
#acp-cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
#acp-cookie-decline:hover {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.45);
}
@media (max-width: 700px) {
  #acp-cookie-banner {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .acp-cookie-actions {
    width: 100%;
    flex-direction: column;
  }
  #acp-cookie-accept,
  #acp-cookie-decline {
    width: 100%;
    text-align: center;
  }
}
