/* ==========================================================
   Site navigation (navbar/nav.php)
   ========================================================== */
.cp-nav {
  --nav-h: 78px;
  --nav-ink: #121a14;
  --nav-gold: #e9d8a6;
  --nav-green: #86a900;
  --nav-ease: cubic-bezier(.19, 1, .22, 1);
  position: sticky; top: 0; z-index: 1040;
  height: var(--nav-h);
  background: rgba(18, 26, 20, .94);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .7);
  font-family: 'Poppins', system-ui, sans-serif;
  transition: transform .5s var(--nav-ease), background .4s ease, box-shadow .4s ease, height .4s var(--nav-ease);
}
/* over a full-screen hero: transparent until you scroll */
.cp-nav--overlay { position: fixed; left: 0; right: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cp-nav--overlay::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0)); transition: opacity .4s; }
.cp-nav.is-scrolled { --nav-h: 66px; background: rgba(18, 26, 20, .94); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.cp-nav.is-scrolled::before { opacity: 0; }
.cp-nav.is-hidden { transform: translateY(-100%); }

.cp-nav-inner {
  height: 100%; max-width: 1360px; margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex; align-items: center; gap: 2rem;
}

/* brand */
.cp-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff !important; flex-shrink: 0; }
.cp-brand img { width: 44px; height: 44px; object-fit: contain; transition: transform .6s var(--nav-ease); }
.cp-brand:hover img { transform: rotate(-10deg) scale(1.06); }
.cp-brand span { font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; white-space: nowrap; }

/* desktop links */
.cp-nav .cp-menu { margin: 0 0 0 auto !important; }   /* beats old global nav { margin-top } */
.cp-menu ul { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.cp-menu li { position: relative; }
.cp-nl {
  position: relative; display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem 1rem; border: 0; background: none; cursor: pointer;
  color: rgba(255, 255, 255, .86) !important; text-decoration: none;
  font: inherit; font-size: .95rem; border-radius: 999px;
  transition: color .3s, background .3s;
}
.cp-nl::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .35rem; height: 1.5px; background: var(--nav-gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--nav-ease); }
.cp-nl:hover, .cp-nl:focus-visible { color: #fff !important; }
.cp-nl:hover::after, .cp-nl.is-active::after, .cp-has-drop.is-active > .cp-nl::after { transform: scaleX(1); }
.cp-nl.is-active, .cp-has-drop.is-active > .cp-nl { color: #fff !important; }
.cp-drop-btn i { font-size: 1.1rem; transition: transform .4s var(--nav-ease); }
.cp-has-drop.is-open .cp-drop-btn i { transform: rotate(180deg); }

/* dropdown */
.cp-drop {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: 21rem; padding: .6rem; border-radius: 20px;
  background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35), 0 0 0 1px rgba(18, 26, 20, .06);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.98); transform-origin: top center;
  transition: opacity .3s ease, transform .4s var(--nav-ease), visibility 0s linear .3s;
}
.cp-drop::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* hover bridge */
.cp-drop::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.cp-has-drop.is-open .cp-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.cp-drop-item {
  display: flex; align-items: center; gap: .9rem; padding: .75rem .8rem; border-radius: 14px;
  text-decoration: none; color: var(--nav-ink) !important;
  opacity: 0; transform: translateY(6px); transition: background .25s, opacity .4s ease, transform .5s var(--nav-ease);
}
.cp-has-drop.is-open .cp-drop-item { opacity: 1; transform: none; }
.cp-has-drop.is-open .cp-drop-item:nth-child(2) { transition-delay: .04s; }
.cp-has-drop.is-open .cp-drop-item:nth-child(3) { transition-delay: .08s; }
.cp-has-drop.is-open .cp-drop-item:nth-child(4) { transition-delay: .12s; }
.cp-drop-item:hover, .cp-drop-item:focus-visible, .cp-drop-item.is-active { background: #f4f0e6; }
.cp-drop-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: rgba(134, 169, 0, .12); color: var(--nav-green); font-size: 1.2rem; flex-shrink: 0; transition: background .3s, color .3s; }
.cp-drop-item:hover .cp-drop-icon { background: var(--nav-green); color: #fff; }
.cp-drop-item strong { display: block; font-size: .92rem; font-weight: 500; }
.cp-drop-item small { display: block; font-size: .76rem; color: #7b7d76; margin-top: .1rem; }

/* contact button */
.cp-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.3rem; border-radius: 999px; flex-shrink: 0;
  background: var(--nav-green); color: #fff !important; text-decoration: none;
  font-size: .9rem; font-weight: 500;
  box-shadow: 0 10px 24px -12px rgba(134, 169, 0, .9);
  transition: transform .35s var(--nav-ease), background .3s, box-shadow .35s;
}
.cp-cta i { transition: transform .4s var(--nav-ease); }
.cp-cta:hover { background: #9ac200; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(134, 169, 0, .9); }
.cp-cta:hover i { transform: rotate(45deg); }

/* hamburger */
.cp-burger { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .1); cursor: pointer; }
.cp-burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .4s var(--nav-ease), opacity .3s, width .4s var(--nav-ease); }
.cp-burger span:nth-child(1) { top: 16px; }
.cp-burger span:nth-child(2) { top: 22px; right: 19px; }
.cp-burger span:nth-child(3) { top: 28px; }
.cp-burger:hover span:nth-child(2) { right: 13px; }

/* ---------- Mobile drawer ---------- */
.cp-drawer { position: fixed; inset: 0; z-index: 1060; visibility: hidden; font-family: 'Poppins', system-ui, sans-serif; }
.cp-drawer.is-open { visibility: visible; }
.cp-drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 12, 9, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s ease; }
.cp-drawer.is-open .cp-drawer-backdrop { opacity: 1; }
.cp-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 400px);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 1.1rem 1.4rem 1.6rem; background: #121a14; color: #fff;
  transform: translateX(100%); transition: transform .6s var(--nav-ease, cubic-bezier(.19,1,.22,1));
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .6);
}
.cp-drawer.is-open .cp-drawer-panel { transform: none; }
.cp-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; }
.cp-drawer-top .cp-brand span { font-size: 1.15rem; }
.cp-drawer-close { width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.5rem; display: grid; place-items: center; cursor: pointer; transition: background .3s, transform .5s cubic-bezier(.19,1,.22,1); }
.cp-drawer-close:hover { background: rgba(255, 255, 255, .18); transform: rotate(90deg); }

.cp-drawer-links { list-style: none; margin: 0; padding: 0; }
.cp-drawer-links > li { border-bottom: 1px solid rgba(255, 255, 255, .08); opacity: 0; transform: translateX(30px); transition: opacity .5s ease, transform .6s cubic-bezier(.19,1,.22,1); }
.cp-drawer.is-open .cp-drawer-links > li { opacity: 1; transform: none; }
.cp-drawer.is-open .cp-drawer-links > li:nth-child(1) { transition-delay: .12s; }
.cp-drawer.is-open .cp-drawer-links > li:nth-child(2) { transition-delay: .17s; }
.cp-drawer.is-open .cp-drawer-links > li:nth-child(3) { transition-delay: .22s; }
.cp-drawer.is-open .cp-drawer-links > li:nth-child(4) { transition-delay: .27s; }
.cp-drawer.is-open .cp-drawer-links > li:nth-child(5) { transition-delay: .32s; }
.cp-drawer-links > li > a, .cp-acc-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 1.05rem 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.75rem; line-height: 1.1;
  color: #fff !important; text-decoration: none; transition: color .3s, padding .4s cubic-bezier(.19,1,.22,1);
}
.cp-drawer-links > li > a:hover, .cp-acc-btn:hover { color: var(--nav-gold, #e9d8a6) !important; padding-left: .4rem; }
.cp-drawer-links a.is-active { color: var(--nav-gold, #e9d8a6) !important; }
.cp-acc-btn i { font-family: remixicon; font-size: 1.3rem; transition: transform .4s cubic-bezier(.19,1,.22,1); }
.cp-acc.is-open .cp-acc-btn i { transform: rotate(45deg); }
.cp-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.19,1,.22,1); }
.cp-acc.is-open .cp-acc-panel { grid-template-rows: 1fr; }
.cp-acc-panel > div { overflow: hidden; }
.cp-acc-panel a { display: flex; align-items: center; gap: .8rem; padding: .7rem .2rem; color: rgba(255, 255, 255, .78) !important; text-decoration: none; font-size: .95rem; }
.cp-acc-panel a:last-child { margin-bottom: .9rem; }
.cp-acc-panel a i { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: rgba(134, 169, 0, .16); color: #b8d64a; }
.cp-acc-panel a:hover, .cp-acc-panel a.is-active { color: #fff !important; }

.cp-drawer-foot { margin-top: auto; padding-top: 2rem; }
.cp-cta--block { display: flex; width: 100%; padding: 1rem; font-size: 1rem; }
.cp-drawer-contacts { display: grid; gap: .3rem; margin-top: 1.4rem; }
.cp-drawer-contacts a { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; color: rgba(255, 255, 255, .7) !important; text-decoration: none; font-size: .88rem; }
.cp-drawer-contacts a i { color: var(--nav-gold, #e9d8a6); font-size: 1.1rem; }
.cp-drawer-contacts a:hover { color: #fff !important; }
body.cp-lock { overflow: hidden; }

/* ---------- Breakpoints ---------- */
@media (max-width: 991px) {
  .cp-nav { --nav-h: 68px; }
  .cp-nav.is-scrolled { --nav-h: 62px; }
  .cp-menu, .cp-nav-inner > .cp-cta { display: none; }
  .cp-burger { display: block; }
  .cp-brand img { width: 38px; height: 38px; }
  .cp-brand span { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-nav, .cp-drop, .cp-drop-item, .cp-drawer-panel, .cp-drawer-links > li { transition: none !important; }
}
