/* Planir shared chrome styles - nav + footer.
   Loaded after each page's inline CSS so these win the cascade.
   Holds both desktop and mobile rules. (Filename kept as nav.css for now.) */

/* ============================================================
   NAV - desktop
   ============================================================ */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 49; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #f0f0f0; height: 72px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.nav-logo { width: 100px; display: flex; align-items: center; }
.nav-logo a { width: 100%; display: flex; align-items: center; text-decoration: none; }
.nav-logo img { width: 100%; }
.nav-links { display: flex; gap: 36px; flex: 1; margin-left: 60px; }
.nav-link-wrapper { position: relative; display: flex; align-items: center; }
.nav-link { font-size: 14px; color: var(--color-text); text-decoration: none; transition: color 0.2s; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-link:hover { color: var(--color-cyan); }
.nav-dropdown-arrow { font-size: 10px; color: #999; transition: transform 0.2s; }
.nav-link-wrapper:hover .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: white; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; pointer-events: none; z-index: 1000; min-width: 320px; }
.nav-link-wrapper:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.nav-dropdown-content { padding: 16px; font-family: 'Inter', system-ui, sans-serif; }
.nav-dropdown-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 6px; text-decoration: none; color: var(--color-text); transition: background 0.2s; cursor: pointer; font-family: 'Inter', system-ui, sans-serif; }
.nav-dropdown-item:hover { background: #f9fafb; }
.nav-dropdown-icon { width: 48px; height: 48px; background: #f3f4f6; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-dropdown-icon svg { width: 32px; height: 32px; }
.nav-dropdown-text { flex: 1; font-family: 'Inter', system-ui, sans-serif; }
.nav-dropdown-title { font-size: 13px; font-weight: 600; color: var(--color-text); margin-bottom: 2px; font-family: 'Inter', system-ui, sans-serif; }
.nav-dropdown-desc { font-size: 12px; color: var(--color-text-muted); line-height: 1.4; font-family: 'Inter', system-ui, sans-serif; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-signin { font-size: 14px; color: var(--color-text); text-decoration: none; }
.nav-signin:hover { color: var(--color-cyan); }

/* ============================================================
   NAV - mobile (hamburger + accordion)
   ============================================================ */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text, #1a1a1a);
  padding: 4px;
  font-size: 26px;
  line-height: 1;
}

.nav-menu-footer { display: none; }

@media (max-width: 1024px) {
  .nav-burger { display: inline-flex; }

  .nav-right .nav-signin { display: none; }
  .nav-menu-demo { display: none; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    display: none;
  }
  nav.nav-open .nav-links { display: flex; }

  .nav-link-wrapper {
    display: block;
    width: 100%;
    position: static;
  }

  .nav-link {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    font-size: 15px;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    background: #fbfbfb;
    transition: max-height 0.25s ease;
  }
  .nav-link-wrapper.expanded .nav-dropdown { max-height: 640px; }
  .nav-dropdown-arrow { transition: transform 0.2s ease; }
  .nav-link-wrapper.expanded .nav-dropdown-arrow { transform: rotate(180deg); }

  .nav-dropdown-content { padding: 4px 0; }
  .nav-dropdown-item { padding: 12px 20px; }

  .nav-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px 20px;
    border-top: 1px solid #f0f0f0;
  }
  .nav-menu-footer .nav-signin { display: inline-block; font-size: 15px; }
}

@media (max-width: 767px) {
  .nav-right .button-primary { display: none; }
  .nav-menu-demo { display: flex; }
}

/* ============================================================
   FOOTER - desktop
   ============================================================ */
footer { padding: 60px 0 40px; background: white; border-top: 1px solid var(--color-grey); }
.footer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-col a { display: block; font-size: 13px; color: var(--color-text-muted); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--color-text); }
.footer-logo { height: 32px; margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: var(--color-text-muted); margin-bottom: 16px; }
.xero-partner-badge { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.soc-certification-badge { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.g2-badge { display: flex; align-items: center; gap: 12px; }
.g2-badge > div:last-child { display: flex; flex-direction: column; }
.g2-badge-stars { display: flex; gap: 4px; margin-top: 4px; align-items: center; }
.g2-badge-stars span:first-child { font-size: 16px; color: #fbbf24; }
.g2-badge-stars span { font-size: 16px; color: #fbbf24; }
.g2-badge-rating { font-size: 9px; color: #d1d5db; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--color-grey); padding-top: 24px; font-size: 13px; color: var(--color-text-muted); }
.footer-bottom-right { display: flex; gap: 24px; }
.footer-bottom-right a { color: var(--color-text-muted); text-decoration: none; font-size: 13px; }
.footer-bottom-right a:hover { color: var(--color-text); }

/* ============================================================
   FOOTER - mobile
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
}
