/* ===== Limons - premium header (loads after the inline styles in index.html) ===== */

/* ---- logo (smaller, clean) ---- */
.logo,
.brand-logo {
  left: clamp(24px, 3vw, 48px) !important;
  top: 15px !important;
  display: flex !important;
  align-items: center !important;
}
.logo img,
.brand-logo img {
  width: 172px !important;
  height: 52px !important;
  max-width: calc(100vw - 110px) !important;
  object-fit: contain !important;
  object-position: left center !important;
  border-radius: 0 !important;
  clip-path: none !important;
}

/* ---- nav: every item gets its own breathing room ---- */
.nav,
.nav-menu {
  left: clamp(250px, 22vw, 400px) !important;
  right: clamp(310px, 24vw, 380px) !important;
  top: 14px !important;
  width: auto !important;
  height: 56px !important;
  justify-content: center !important;
  align-items: center !important;
  gap: clamp(2px, .5vw, 10px) !important;
}
.nav-link {
  font-size: 15.5px !important;
  font-weight: 500 !important;
  letter-spacing: .005em;
  padding: 10px clamp(10px, 1.05vw, 17px) !important;
  border-radius: 999px;
  transition: color .25s ease, background .3s ease !important;
}
.nav-link:hover,
.nav-link.on { background: rgba(243, 165, 173, .09); }
.nav-link::after,
.nav-link.on::after { display: none !important; }
/* ---- Products dropdown: temporarily hidden across all pages (toggle to visible whenever needed) ---- */
.nav-item-dropdown,
#productsDropdown {
  display: none !important;
}
.drop-arrow { width: 10px !important; height: 6px !important; flex: none; }

/* ---- dropdown: standard, comfortable size ---- */
.dropdown-menu {
  width: 350px !important;
  min-width: 320px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  top: calc(100% - 2px) !important;
}
.dropdown-item {
  gap: 14px !important;
  padding: 12px 14px !important;
  border-radius: 13px !important;
}
.drop-badge {
  width: 40px !important;
  height: 40px !important;
  border-radius: 11px !important;
}
.drop-badge svg { width: 20px !important; height: 20px !important; }
.drop-title { font-size: 15px !important; line-height: 1.25 !important; }
.drop-desc  { font-size: 12.5px !important; margin-top: 3px !important; line-height: 1.3 !important; }

/* ---- right side: github + CTA, with room between them and the nav ---- */
.header-right,
.header-actions {
  left: auto !important;
  right: clamp(20px, 2.4vw, 36px) !important;
  top: 18px !important;
  gap: 20px !important;
  align-items: center !important;
}
.gh-hover { padding-bottom: 0 !important; margin-left: 12px; }

.cta,
.btn-contact {
  width: auto !important;
  min-width: 160px !important;
  height: 48px !important;
  padding: 0 20px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  gap: 9px !important;
  white-space: nowrap;
}
.cta svg { width: 14px !important; height: 14px !important; flex: none !important; }

/* ---- GitHub icon: inline SVG, always visible ---- */
.gh-trigger {
  width: 46px !important;
  height: 46px !important;
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  isolation: isolate;
  border: 1px solid rgba(243, 165, 173, .5) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .05) !important;
  box-shadow: 0 0 18px rgba(243, 165, 173, .18), inset 0 0 12px rgba(243, 165, 173, .08) !important;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s, border-color .35s !important;
}
.gh-trigger::before { display: none !important; }
.gh-trigger svg { position: relative; z-index: 1; width: 22px; height: 22px; fill: #F7F4F1; transition: fill .3s; }
.gh-hover:hover .gh-trigger,
.gh-hover:focus-within .gh-trigger {
  transform: scale(1.06) !important;
  border-color: rgba(243, 165, 173, .95) !important;
  box-shadow: 0 0 26px rgba(243, 165, 173, .4) !important;
  filter: none !important;
}

/* ---- GitHub Modal Card (Active on hover/focus across all pages) ---- */
.gh-hover {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.gh-modal {
  position: absolute !important;
  top: calc(100% + 12px) !important;
  right: 0 !important;
  width: 320px !important;
  background: rgba(18, 5, 8, 0.97) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 83, 97, 0.28) !important;
  border-radius: 20px !important;
  padding: 24px 26px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(154, 30, 35, 0.25) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(10px) !important;
  transition: opacity .35s ease, transform .35s ease, visibility .35s !important;
  z-index: 9999 !important;
  pointer-events: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  text-align: left !important;
}

.gh-modal::before {
  content: "" !important;
  position: absolute !important;
  top: -20px !important;
  left: 0 !important;
  right: 0 !important;
  height: 24px !important;
  background: transparent !important;
}

.gh-hover:hover .gh-modal,
.gh-hover:focus-within .gh-modal,
.gh-hover.is-open .gh-modal,
.gh-trigger:hover + .gh-modal,
.gh-modal:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.gh-modal h4,
.gh-modal .gh-modal-title {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
}

.gh-modal p {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  margin: 0 0 6px 0 !important;
  font-weight: 400 !important;
}

.gh-modal-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  text-decoration: none !important;
  width: fit-content !important;
  transition: all .25s ease !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.gh-modal-btn:hover {
  background: rgba(255, 83, 97, 0.22) !important;
  border-color: rgba(255, 83, 97, 0.5) !important;
  box-shadow: 0 4px 18px rgba(234, 43, 100, 0.35) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.gh-modal-btn svg {
  width: 18px !important;
  height: 18px !important;
  fill: #ffffff !important;
  flex-shrink: 0 !important;
}

/* ---- curved bottom -> top hover fill for every button ---- */
.cta, .btn-contact, .mobile-contact, .gh-trigger, .res-tab-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta::before, .btn-contact::before, .mobile-contact::before, .gh-trigger::after, .res-tab-btn::before {
  content: "";
  position: absolute;
  left: -12%; right: -12%; bottom: -2px;
  height: 0;
  z-index: -1;
  background: linear-gradient(0deg, #680202 0%, #9A1E23 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transition: height .55s cubic-bezier(.16, 1, .3, 1), border-radius .55s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.gh-trigger::after { z-index: 0; }
.cta:hover::before, .cta:focus-visible::before,
.btn-contact:hover::before, .btn-contact:focus-visible::before,
.mobile-contact:hover::before, .mobile-contact:focus-visible::before,
.res-tab-btn:hover::before, .res-tab-btn:focus-visible::before,
.gh-hover:hover .gh-trigger::after, .gh-trigger:focus-visible::after {
  height: 135%;
  border-radius: 0 0 0 0 / 0 0 0 0;
}
.cta:hover, .res-tab-btn:hover { background: rgba(80, 10, 20, .25) !important; border-color: #e0526d !important; }

.mobile-contact { display: none; }
.mobile-toggle { display: none; }

/* ---- tablet / mobile ---- */
@media (max-width: 1024px) {
  .logo, .brand-logo { left: 16px !important; top: 14px !important; }
  .logo img, .brand-logo img { width: 150px !important; height: 46px !important; }

  .nav:not(.open), .nav-menu:not(.open) { display: none !important; }
  .nav.open, .nav-menu.open {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 84px 24px 32px !important;
    overflow-y: auto !important;
    background: rgba(8, 2, 4, .98) !important;
    z-index: 1000 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .nav.open .nav-link, .nav-menu.open .nav-link { font-size: 21px !important; padding: 10px 18px !important; }
  .nav-item-dropdown { height: auto !important; flex-direction: column; }
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: min(340px, 86vw) !important;
    min-width: 0 !important;
    margin-top: 10px;
  }

  .header-right, .header-actions {
    position: fixed !important;
    left: auto !important;
    right: 70px !important;
    top: 17px !important;
    display: flex !important;
    align-items: center !important;
  }
  .header-right .gh-hover, .header-actions .gh-hover { display: inline-flex !important; }
  .gh-hover { padding-bottom: 0 !important; }
  .cta, .btn-contact { display: none !important; }
  .gh-modal { right: -40px !important; width: min(320px, calc(100vw - 32px)) !important; }

  .mobile-toggle {
    position: fixed !important;
    top: 20px !important;
    right: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 40px !important;
    height: 40px !important;
    padding: 6px !important;
    border: 0 !important;
    z-index: 1100 !important;
  }
  .mobile-toggle span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: #fff !important;
    border-radius: 2px !important;
  }
  .mobile-contact {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    min-width: 176px !important;
    min-height: 48px !important;
    padding: 0 20px !important;
    border: 1px solid rgba(255, 83, 97, .7) !important;
    border-radius: 999px !important;
    background: rgba(80, 10, 20, .55) !important;
    color: #fff !important;
    font-size: 15px !important;
    text-decoration: none !important;
  }
  .mobile-contact svg { width: 14px; height: 14px; flex: none; }
}