/* Profitholder v3 — navigation, footer, breadcrumbs and skim components.
   Uses the existing pf2 dark-green / olive palette. Loaded after pf2.v2.css. */

:root {
  --v3-bg: #0c1714;
  --v3-bg2: #101e19;
  --v3-surface: #14231d;
  --v3-surface2: #1a2c24;
  --v3-text: #f2f1e7;
  --v3-muted: rgba(242, 241, 231, 0.68);
  --v3-line: rgba(242, 241, 231, 0.12);
  --v3-line2: rgba(242, 241, 231, 0.22);
  --v3-olive: #97a86b;
  --v3-olive-hi: #b3c77f;
  --v3-green: #2f7a57;
}

/* ------------------------------------------------------------ header */
header.v3 {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12, 23, 20, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--v3-line);
  color: var(--v3-text);
  font-family: "Source Sans 3", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
header.v3 .v3-bar {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
header.v3 .v3-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--v3-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin-right: auto;
  white-space: nowrap;
}
header.v3 .v3-brand img { width: 34px; height: 32px; object-fit: contain; display: block; }
header.v3 .v3-brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v3-olive-hi);
  line-height: 1;
  margin-top: 3px;
}

/* desktop menu */
.v3-menu { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.v3-menu > li { position: relative; }
.v3-menu > li > a,
.v3-menu > li > button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: none;
  border: 0;
  color: var(--v3-text);
  font: inherit;
  font-weight: 650;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
}
.v3-menu > li > a:hover,
.v3-menu > li > button:hover,
.v3-menu > li:focus-within > button,
.v3-menu > li > a[aria-current="page"] { color: var(--v3-olive-hi); background: rgba(242, 241, 231, 0.05); }
.v3-menu .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: 0.7; }

.v3-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 320px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-line2);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 70;
}
.v3-drop--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem; }
.v3-menu > li:hover > .v3-drop,
.v3-menu > li:focus-within > .v3-drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.v3-menu > li::after { /* hover bridge */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px;
}
.v3-drop a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  color: var(--v3-text);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.25;
}
.v3-drop a span { display: block; font-weight: 400; font-size: 0.83rem; color: var(--v3-muted); margin-top: 2px; }
.v3-drop a:hover, .v3-drop a:focus-visible { background: var(--v3-surface2); color: var(--v3-olive-hi); outline: none; }
.v3-drop .v3-drop-all { grid-column: 1 / -1; border-top: 1px solid var(--v3-line); margin-top: 0.25rem; padding-top: 0.75rem; color: var(--v3-olive-hi); }
.v3-badge { display: inline-block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--v3-olive); color: #10170c; border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }

.v3-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--v3-olive);
  color: #10170c !important;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.v3-cta:hover { background: var(--v3-olive-hi); transform: translateY(-1px); }

/* mobile menu */
.v3-mob { display: none; }
.v3-mob > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--v3-line2);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 750;
  color: var(--v3-text);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.v3-mob > summary::-webkit-details-marker { display: none; }
.v3-mob > summary .bars { width: 18px; height: 2px; background: currentColor; position: relative; }
.v3-mob > summary .bars::before, .v3-mob > summary .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.v3-mob > summary .bars::before { top: -6px; }
.v3-mob > summary .bars::after { top: 6px; }
.v3-mob[open] > summary { border-color: var(--v3-olive); color: var(--v3-olive-hi); }
.v3-mob .v3-panel {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  top: 76px;
  max-height: calc(100vh - 92px);
  overflow: auto;
  background: var(--v3-surface);
  border: 1px solid var(--v3-line2);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding: 0.9rem;
  z-index: 90;
}
.v3-panel h3 { margin: 0.9rem 0.4rem 0.35rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--v3-olive-hi); font-family: inherit; }
.v3-panel h3:first-child { margin-top: 0.2rem; }
.v3-panel a { display: block; padding: 0.7rem 0.6rem; border-radius: 10px; color: var(--v3-text); text-decoration: none; font-weight: 650; font-size: 1rem; }
.v3-panel a:hover { background: var(--v3-surface2); }
.v3-panel .v3-panel-grid { display: grid; grid-template-columns: 1fr 1fr; }
.v3-panel .v3-cta { display: flex; margin-top: 0.9rem; padding: 0.9rem; }

@media (max-width: 1080px) {
  .v3-menu .v3-hide-md { display: none; }
}
@media (max-width: 920px) {
  header.v3 .v3-nav { display: none; }
  .v3-mob { display: block; }
  header.v3 .v3-bar > .v3-cta { display: none; }
}

/* ------------------------------------------------------------ breadcrumbs */
.v3-crumbs {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--v3-muted);
}
.v3-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.v3-crumbs li + li::before { content: "/"; opacity: 0.45; margin-right: 0.35rem; }
.v3-crumbs a { color: var(--v3-olive-hi); text-decoration: none; }
.v3-crumbs a:hover { text-decoration: underline; }
.pf2 .pf2-hero + .v3-crumbs, .v3-crumbs + .pf2-hero { margin-top: 0; }
body.pf2 > .v3-crumbs { position: relative; z-index: 2; }

/* ------------------------------------------------------------ footer */
footer.v3 {
  background: #09120f;
  border-top: 1px solid var(--v3-line);
  color: var(--v3-muted);
  padding: 3.2rem 0 2.2rem;
  font-family: "Source Sans 3", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}
footer.v3 .v3-fwrap { width: min(1240px, calc(100% - 2rem)); margin-inline: auto; }
footer.v3 .v3-ftop { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
footer.v3 h2 { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--v3-text); margin: 0 0 0.9rem; font-family: inherit; font-weight: 800; }
footer.v3 ul { list-style: none; margin: 0; padding: 0; }
footer.v3 li { margin: 0 0 0.5rem; }
footer.v3 a { color: var(--v3-muted); text-decoration: none; }
footer.v3 a:hover { color: var(--v3-olive-hi); }
footer.v3 .v3-fbrand { color: var(--v3-text); font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.7rem; }
footer.v3 .v3-fbrand img { width: 30px; height: 28px; }
footer.v3 .v3-fabout { line-height: 1.6; margin: 0 0 1rem; }
footer.v3 .v3-fcontact a { color: var(--v3-text); font-weight: 650; }
footer.v3 .v3-ftrades { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--v3-line); display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.88rem; }
footer.v3 .v3-ftrades strong { color: var(--v3-text); margin-right: 0.3rem; }
footer.v3 .v3-legal { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--v3-line); font-size: 0.84rem; line-height: 1.6; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; justify-content: space-between; }
@media (max-width: 960px) { footer.v3 .v3-ftop { grid-template-columns: 1fr 1fr; } footer.v3 .v3-fcol-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { footer.v3 .v3-ftop { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }

/* ------------------------------------------------------------ skim components (homepage + hubs) */
.v3-tldr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.2rem; position: relative; z-index: 2; }
.v3-tldr > div { background: rgba(20, 35, 29, 0.78); border: 1px solid var(--v3-line2); border-radius: 16px; padding: 1.1rem 1.15rem; }
.v3-tldr b { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--v3-olive-hi); margin-bottom: 0.35rem; }
.v3-tldr p { margin: 0; color: var(--v3-text); font-size: 0.98rem; line-height: 1.45; }
@media (max-width: 900px) { .v3-tldr { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .v3-tldr { grid-template-columns: 1fr; } }

.v3-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; position: relative; z-index: 2; }
.v3-jump a { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--v3-line2); color: var(--v3-text); text-decoration: none; font-weight: 650; font-size: 0.9rem; }
.v3-jump a:hover { border-color: var(--v3-olive); color: var(--v3-olive-hi); }

.v3-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.v3-card {
  display: flex; flex-direction: column; gap: 0.45rem;
  background: var(--v3-surface); border: 1px solid var(--v3-line); border-radius: 18px;
  padding: 1.3rem 1.25rem; color: var(--v3-text); text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
a.v3-card:hover { border-color: var(--v3-olive); transform: translateY(-2px); background: var(--v3-surface2); }
.v3-card .v3-tag { align-self: flex-start; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #10170c; background: var(--v3-olive); border-radius: 999px; padding: 3px 9px; }
.v3-card .v3-tag--ghost { background: transparent; color: var(--v3-olive-hi); border: 1px solid rgba(151, 168, 107, 0.55); }
.v3-card h3 { margin: 0.15rem 0 0; font-size: 1.15rem; line-height: 1.25; color: var(--v3-text); }
.v3-card p { margin: 0; color: var(--v3-muted); line-height: 1.5; font-size: 0.97rem; }
.v3-card .v3-more { margin-top: auto; padding-top: 0.5rem; color: var(--v3-olive-hi); font-weight: 750; font-size: 0.93rem; }

.v3-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.8rem; }
@media (max-width: 760px) { .v3-split { grid-template-columns: 1fr; } }
.v3-split .v3-card { padding: 1.6rem 1.5rem; }
.v3-split .v3-card h3 { font-size: 1.4rem; }

.v3-faq { margin-top: 1.6rem; display: grid; gap: 0.7rem; max-width: 900px; }
.v3-faq details { background: var(--v3-surface); border: 1px solid var(--v3-line); border-radius: 14px; padding: 0.2rem 1.1rem; }
.v3-faq summary { cursor: pointer; padding: 0.95rem 0; font-weight: 750; color: var(--v3-text); font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.v3-faq summary::-webkit-details-marker { display: none; }
.v3-faq summary::after { content: "+"; color: var(--v3-olive-hi); font-size: 1.3rem; line-height: 1; }
.v3-faq details[open] summary::after { content: "–"; }
.v3-faq details p { margin: 0 0 1rem; color: var(--v3-muted); line-height: 1.6; }

.v3-steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; list-style: none; padding: 0; }
.v3-steps li { counter-increment: s; background: var(--v3-surface); border: 1px solid var(--v3-line); border-radius: 16px; padding: 1.2rem; color: var(--v3-muted); line-height: 1.5; }
.v3-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--v3-olive); color: #10170c; font-weight: 900; margin-bottom: 0.6rem; }
.v3-steps li strong { display: block; color: var(--v3-text); font-size: 1.05rem; margin-bottom: 0.2rem; }
@media (max-width: 760px) { .v3-steps { grid-template-columns: 1fr; } }

/* trade page extras */
.v3-list2 { columns: 2; column-gap: 2rem; padding-left: 1.1rem; color: var(--v3-muted); line-height: 1.8; margin-top: 1rem; }
@media (max-width: 640px) { .v3-list2 { columns: 1; } }

/* fix: solid hero button text contrast (olive on olive) */
.pf2 .pf2-btn--solid, .pf2 a.pf2-btn--solid { color: #10170c !important; }

/* hide legacy sticky call bar under the new mobile menu panel */
@media (min-width: 921px) { .pf2-callbar { display: none; } }

/* nav link colour: page.v2.css sets a green link colour globally */
header.v3 .v3-menu > li > a { color: var(--v3-text) !important; }
header.v3 .v3-menu > li > a:hover, header.v3 .v3-menu > li > a[aria-current="page"] { color: var(--v3-olive-hi) !important; }
header.v3 .v3-drop a, .v3-panel a:not(.v3-cta) { color: var(--v3-text) !important; }
header.v3 .v3-drop a:hover { color: var(--v3-olive-hi) !important; }
header.v3 .v3-drop .v3-drop-all { color: var(--v3-olive-hi) !important; }

/* homepage H1: slogan + keyword line */
.pf2-hero h1 .v3-h1sub {
  display: block;
  margin-top: 0.9rem;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--v3-olive-hi);
  font-style: normal;
  max-width: 30ch;
}

/* services grid (was unstyled, cards stacked in a narrow column) */
.pf2 .pf2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.pf2 .pf2-grid .pf2-card { background: var(--v3-surface); border: 1px solid var(--v3-line); border-radius: 18px; padding: 1.4rem 1.3rem; margin: 0; max-width: none; }
.pf2 .pf2-grid .pf2-card h3 { margin-top: 0; }
.pf2 .pf2-grid .pf2-card ul { padding-left: 1.1rem; margin-bottom: 0; }
@media (max-width: 900px) { .pf2 .pf2-grid { grid-template-columns: 1fr; } }

/* mobile: menu panel above the sticky call bar; readable call bar */
header.v3 { z-index: 100; }
.pf2 .pf2-callbar, .pf2 a.pf2-callbar { color: #10170c !important; font-weight: 800; }
.v3-mob[open] ~ * .pf2-callbar { display: none; }
