/* ============================================================
   PVRPL menu bar enhancements (loaded after main.css)
   ============================================================ */

/* ---------- top-level links: animated brand underline ---------- */
.header-main .main-menu nav > ul > li > a {
  position: relative;
}
.header-main .main-menu nav > ul > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 12px;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--theme) 0%, var(--theme2) 100%);
  transition: width 0.35s ease;
}
.header-main .main-menu nav > ul > li:hover > a::before,
.header-main .main-menu nav > ul > li > a.active::before {
  width: 100%;
}

/* active page link keeps brand colour even when not hovered */
.header-main .main-menu nav > ul > li > a.active {
  color: var(--theme2);
}

/* ---------- dropdown caret: consistent size + rotate on hover ---------- */
.header-main .main-menu nav > ul > li > a i {
  font-size: 11px;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.header-main .main-menu nav > ul > li:hover > a i {
  transform: rotate(180deg);
}

/* ---------- submenu: softer panel, no janky padding jump ---------- */
/* overflow must stay visible so nested flyouts (Projects > Ongoing) are not clipped */
.header-main .main-menu ul li .submenu {
  min-width: 260px;
  padding: 8px 0;
  border-top-width: 3px;
  border-radius: 0 0 14px 14px;
  overflow: visible;
  box-shadow: 0 18px 40px -12px rgba(19, 19, 19, 0.25);
}
.header-main .main-menu ul li .submenu li:last-child > a {
  border-radius: 0 0 14px 14px;
}
/* chevron cue for items that open a nested flyout */
.header-main .main-menu ul li .submenu li.has-dropdown > a i {
  float: right;
  margin-top: 4px;
  font-size: 11px;
}
/* nested flyouts: stay hidden until their own parent item is hovered */
.header-main .main-menu ul li .submenu li .submenu {
  position: absolute;
  inset-inline-start: 100%;
  top: 0;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}
.header-main .main-menu ul li .submenu li:hover > .submenu {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}
.header-main .main-menu ul li .submenu li a {
  border-bottom: none;
  padding: 11px 25px;
}
/* left accent bar that grows in on hover */
.header-main .main-menu ul li .submenu li > a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: var(--theme2);
  transition: transform 0.25s ease;
}
.header-main .main-menu ul li .submenu li:hover > a {
  background: rgba(15, 163, 216, 0.08);
  color: var(--theme2) !important;
  padding: 11px 25px 11px 32px;
}
.header-main .main-menu ul li .submenu li:hover > a::after {
  transform: translateY(-50%) scaleY(1);
}
/* items with a nested flyout: the theme's caret rule (li.has-dropdown > a::after)
   has higher specificity and cancels the scaleY(0), leaving a stray bar visible.
   Restate the hidden/hover states at the same specificity. */
.header-main .main-menu ul li .submenu li.has-dropdown > a::after {
  inset-inline-end: auto;
  left: 0;
  transform: translateY(-50%) scaleY(0);
}
.header-main .main-menu ul li .submenu li.has-dropdown:hover > a::after {
  transform: translateY(-50%) scaleY(1);
}
.header-main .main-menu ul li .submenu li a.active {
  background: rgba(15, 163, 216, 0.08);
  color: var(--theme2) !important;
}

/* ---------- projects mega menu: keep panel inside viewport ---------- */
.header-main .main-menu ul li .has-homemenu {
  border-radius: 0 0 14px 14px;
}

/* ---------- desktop CTA button ---------- */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  margin-right: 18px;
  border-radius: 999px;
  background: var(--title);
  color: #fff !important;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.header-cta i {
  font-size: 12px;
  transition: transform 0.3s ease;
}
.header-cta:hover {
  background: var(--theme2);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(247, 79, 34, 0.55);
}
.header-cta:hover i {
  transform: translateX(3px);
}
@media (max-width: 1399px) {
  .header-cta {
    display: none;
  }
}

/* ---------- floating pill: breathing room above the menu ---------- */
.header-1:not(.sticky) {
  padding-top: 18px;
}
.header-1:not(.sticky) .mega-menu-wrapper {
  margin-top: 0;
}
@media (max-width: 767px) {
  .header-1:not(.sticky) {
    padding-top: 12px;
  }
}

/* ---------- scrolled state: full-width fixed bar ---------- */
/* main.js adds .sticky to #header-sticky on scroll; .sticky in main.css
   already sets position:fixed / top:0 / width:100%. The rules below turn
   the floating pill into an edge-to-edge bar in that state. */
.sticky.header-1 {
  padding: 0;
  background: var(--white, #fff);
  box-shadow: 0 6px 24px -10px rgba(19, 16, 34, 0.18);
}
.sticky.header-1 .container {
  max-width: 100%;
  padding: 0 48px;
}
.sticky.header-1 .mega-menu-wrapper {
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
@media (max-width: 767px) {
  .sticky.header-1 .container {
    padding: 0 16px;
  }
}

/* ---------- hamburger: gentle feedback ---------- */
.header-right .sidebar__toggle {
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.header-right .sidebar__toggle:hover {
  transform: scale(1.08);
  opacity: 0.75;
}

/* Hide canvas hamburger on desktop; keep mobile toggle only */
@media (min-width: 1200px) {
  .header-main .header__canvas__hamburger {
    display: none !important;
  }
}

/* ============================================================
   Mobile offcanvas menu
   ============================================================ */
@media (max-width: 1199px) {
  .mouse-cursor {
    display: none !important;
  }
}

.offcanvas__info {
  width: min(360px, 88vw);
  border-left: 0;
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.35);
}
.offcanvas__wrapper {
  padding: 22px 22px 36px;
  background:
    linear-gradient(180deg, rgba(15, 163, 216, 0.08) 0%, transparent 180px),
    #0f1115;
}
.offcanvas__top {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.offcanvas__logo a img {
  width: 128px;
}
.offcanvas__wrapper .offcanvas__content .offcanvas__close {
  width: 42px;
  height: 42px;
  line-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #19b4e4 0%, #0c86b3 100%);
  box-shadow: 0 8px 18px rgba(15, 163, 216, 0.28);
}
.offcanvas__wrapper .offcanvas__content .offcanvas__close button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.offcanvas__wrapper .offcanvas__content .offcanvas__close i {
  font-size: 16px;
  line-height: 1;
}

/* Nav links */
.offcanvas__info .mobile-menu {
  margin-bottom: 28px;
}
.offcanvas__info .mean-container .mean-nav > ul {
  margin: 0;
  padding: 0;
}
.offcanvas__info .mean-container .mean-nav ul li a {
  position: relative;
  padding: 14px 36px 14px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.offcanvas__info .mean-container .mean-nav ul li a:hover,
.offcanvas__info .mean-container .mean-nav ul li a.active {
  color: var(--theme) !important;
  padding-left: 8px !important;
}
.offcanvas__info .mean-container .mean-nav ul li a.mean-expand {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7) !important;
}
.offcanvas__info .mean-container .mean-nav ul li a.mean-expand:hover {
  color: var(--theme) !important;
  padding-left: 0 !important;
}
.offcanvas__info .mean-container .mean-nav ul li > ul {
  padding: 4px 0 8px 12px;
  background: rgba(255, 255, 255, 0.03);
}
.offcanvas__info .mean-container .mean-nav ul li > ul li a {
  padding: 10px 0 !important;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72) !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

/* Contact block */
.offcanvas__wrapper .offcanvas__content .offcanvas__contact {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.offcanvas__wrapper .offcanvas__content .offcanvas__contact h4 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.offcanvas__wrapper .offcanvas__content .offcanvas__contact h4::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--theme) 0%, var(--theme2) 100%);
}
.offcanvas__office {
  margin-bottom: 18px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.offcanvas__office-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 163, 216, 0.16);
  color: var(--theme);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.offcanvas__office ul {
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
.offcanvas__office li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  line-height: 1.45;
}
.offcanvas__office li:last-child {
  margin-bottom: 0 !important;
}
.offcanvas__office a {
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none;
  word-break: break-word;
}
.offcanvas__office a:hover {
  color: var(--theme) !important;
}
.offcanvas__contact-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 0 !important;
  border-radius: 8px;
  background: rgba(247, 79, 34, 0.12);
  color: var(--theme2);
  font-size: 12px;
}
.offcanvas__hours {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.offcanvas__hours p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.5;
}
.offcanvas__cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 18px;
}
.offcanvas__wrapper .offcanvas__content .offcanvas__contact .social-icon {
  margin-top: 0;
  gap: 10px;
  padding-bottom: 8px;
}
.offcanvas__wrapper .offcanvas__content .offcanvas__contact .social-icon a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.offcanvas__wrapper .offcanvas__content .offcanvas__contact .social-icon a:hover {
  background: var(--theme);
  border-color: var(--theme);
  color: #fff !important;
}

@media (max-width: 450px) {
  .offcanvas__info {
    width: min(320px, 90vw);
  }
  .offcanvas__wrapper {
    padding: 18px 16px 28px;
  }
}
