/* NestWell360 theme for the Gentelella v4 shell (assets/gentelella-shell.css).
   Loads after nestwell.css: rebrands the shell in the Brigade palette and turns
   page sections into dashboard cards. */

:root {
  --sidebar-bg: #0B1220;
  --sidebar-hover: rgba(255, 255, 255, 0.05);
  --sidebar-active: rgba(233, 161, 50, 0.14);
  --sidebar-text: #A3ACBB;
  --sidebar-text-hover: #E8EBF2;
  --sidebar-text-active: #FFFFFF;
  --sidebar-w: 256px;
  --primary: #96660F;
  --primary-lt: rgba(233, 161, 50, 0.12);
  --primary-dk: #7A520B;
  --body-bg: #F5F6F8;
  --bg-surface: #FFFFFF;
  --border-color: #DDE1E7;
  --text: #0B1220;
  --text-secondary: #5A6373;
  --text-muted: #5A6373;
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --card-radius: 12px;
  --card-shadow: 0 0 0 1px rgba(11, 18, 32, 0.06), 0 2px 6px rgba(11, 18, 32, 0.05);
}
[data-theme="dark"] {
  --sidebar-bg: #070C16;
  --primary: #F4C061;
  --primary-lt: rgba(244, 192, 97, 0.14);
  --body-bg: #0B1220;
  --bg-surface: #111A2C;
  --border-color: #24304A;
  --text: #E8EBF2;
  --text-secondary: #9AA3B2;
  --text-muted: #9AA3B2;
  --card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.3);
}
/* nestwell.css colors follow the same toggle (it already handles data-theme="dark") */
[data-theme="dark"] .topbar { background: rgba(11, 18, 32, 0.88); }

/* ---------- Shell ---------- */
.sidebar, .topbar { font-family: var(--font-display); }
.sidebar { box-shadow: 1px 0 0 rgba(255, 255, 255, 0.04); }
.sidebar-brand {
  gap: 10px; color: #fff; text-decoration: none; height: 64px;
  border-bottom: 1px solid var(--sidebar-border);
}
.sidebar-brand:hover { text-decoration: none; color: #fff; }
.sidebar-brand svg { flex: none; }
.sidebar-brand .brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.nav-label { color: #6E7889; letter-spacing: 0.08em; }
.nav-link, .nav-sublink { font-size: 15px; text-decoration: none !important; }
.nav-link { position: relative; }
.nav-link.active { box-shadow: inset 3px 0 0 var(--amber, #E9A132); }
.nav-link.active .icon, .nav-tree.has-active > .nav-toggle .icon { color: var(--amber, #E9A132); opacity: 1; }
.nav-sublink.active { color: #fff; }
.nav-sublink.active::before { background: var(--amber, #E9A132) !important; }
.sidebar .plan-badge {
  margin-inline-start: auto; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 1px 7px; border-radius: 999px; border: 0; background: rgba(233, 161, 50, 0.18); color: #F4C061;
}
@media (min-width: 769px) { body.sidebar-rail .sidebar .plan-badge { display: none; } }
.sidebar-user { text-decoration: none !important; color: inherit; }
.sidebar-user .avatar, .tb-avatar {
  background: #E9A132; color: #0B1220; font-family: var(--font-display); font-weight: 700;
}
.sidebar-user-info .name { color: #fff; }
.tb-avatar { display: inline-grid; place-items: center; text-decoration: none !important; }
.tb-btn { text-decoration: none !important; }
.tb-btn.tb-plus {
  background: #E9A132; color: #0B1220; border-color: #E9A132; font-weight: 600; padding: 0 14px; width: auto;
}
.tb-btn.tb-plus:hover { background: #F4C061; color: #0B1220; }
.tb-btn.tb-plus[hidden] { display: none; }
.tb-btn.tb-help {
  width: auto; padding: 0 10px; font-weight: 600; font-size: 13px; color: var(--text-secondary);
  border: 1px solid var(--border-color); border-radius: 999px; margin-inline: 6px;
}
.breadcrumb { font-size: 14px; }
.breadcrumb a { color: var(--text-secondary); }
.topbar { height: 60px; }
main.main { padding-top: 60px; background: var(--paper); }
.skip-link { font-family: var(--font-display); }

/* ---------- Page content as dashboard cards ---------- */
.page-wrapper { padding: 24px 28px 32px; }
.nw-page { max-width: 1080px; margin: 0 auto; padding-inline: 0; display: grid; gap: 20px; }
.nw-page > * { min-width: 0; }

.nw-page header.hero, .nw-page .acct-head, .nw-page .hub-head {
  background: var(--surface); border-radius: var(--card-radius); box-shadow: var(--card-shadow);
  padding: 28px 30px; margin: 0;
}
.nw-page header.hero h1, .nw-page .acct-head h1, .nw-page .hub-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.hero.has-photo, .acct-head.has-photo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 34%); column-gap: 32px; row-gap: 16px; align-items: start;
}
.hero.has-photo > *, .acct-head.has-photo > * { grid-column: 1; }
.hero-photo { grid-column: 2 !important; grid-row: 1 / span 8; margin: 0; align-self: stretch; }
.hero-photo img { width: 100%; height: 100%; min-height: 220px; max-height: 360px; object-fit: cover; border-radius: 10px; display: block; }
.acct-head.has-photo .hero-photo img { max-height: 300px; object-position: 50% 30%; }
@media (max-width: 900px) {
  .hero.has-photo, .acct-head.has-photo { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { grid-column: 1 !important; grid-row: auto; order: -1; }
  .hero-photo img { min-height: 0; max-height: 220px; }
}

.nw-page > section.block, .nw-page > section.tailor, .nw-page > .gl-wrap {
  background: var(--surface); border: 0; border-radius: var(--card-radius); box-shadow: var(--card-shadow);
  padding: 26px 28px; margin: 0;
}
.nw-page > section.block .type, .nw-page > section.block .res, .nw-page > section.block .list,
.nw-page > section.block .prod, .nw-page > section.block .svc, .nw-page > section.block .controls {
  background: var(--paper); border-color: transparent;
}
.section-photo { margin: 4px 0 0; }
.section-photo img { width: 100%; height: auto; max-height: 260px; object-fit: cover; border-radius: 10px; display: block; }

/* Buttons: Brigade navy, amber for the primary call to action */
.btn { border-radius: 8px; }
.btn:not(.ghost):hover { filter: brightness(1.12); }

/* Sticky in-page bars sit under the fixed topbar */
.subnav, .sections { top: 60px !important; }
html { scroll-padding-top: 76px; }

.nw-foot { border-top: 1px solid var(--line); padding: 20px 2px 8px; font-size: 0.9rem; max-width: 1080px; margin: 24px auto 0; }

@media (max-width: 768px) {
  .page-wrapper { padding: 14px 12px 24px; }
  .nw-page header.hero, .nw-page .acct-head, .nw-page .hub-head, .nw-page > section.block, .nw-page > section.tailor { padding: 20px 18px; }
  .tb-btn.tb-help { display: none; }
}

@media print {
  .sidebar, .topbar, .sidebar-backdrop, .skip-link, .hero-photo, .section-photo { display: none !important; }
  main.main { margin: 0 !important; padding: 0 !important; background: #fff; }
  .page-wrapper { padding: 0; }
  .nw-page > * { box-shadow: none !important; }
}
