/* ============================================================
   Phase 3 shared layer: navigation dropdown, footer, page shells,
   pillar-page components, forms. Loads after site-refresh.css.
   ============================================================ */

:root {
  --p3-brand: #0b4fb3;
  --p3-brand-deep: #083a84;
  --p3-ink: #10213f;
  --p3-muted: #3a4e71;
  --p3-border: rgba(16, 33, 63, 0.14);
  --p3-sky: #e9f2ff;
  --p3-cream: #fdf7ec;
  --p3-accent: #c07a2d;
  --p3-radius: 16px;
}

/* ---------- Navigation: dropdown ---------- */
nav.site-nav .nav-links { flex-wrap: wrap !important; justify-content: center !important; }
nav.site-nav li.has-dropdown { position: relative !important; display: inline-block !important; }
nav.site-nav ul.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  margin: 6px 0 0 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--p3-border);
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(11, 79, 179, 0.18);
  z-index: 300;
}
nav.site-nav li.has-dropdown:hover > ul.dropdown,
nav.site-nav li.has-dropdown:focus-within > ul.dropdown { display: block; }
nav.site-nav ul.dropdown li { display: block !important; width: 100%; }
nav.site-nav ul.dropdown a {
  display: block !important;
  width: 100%;
  text-align: left;
  font-size: 0.85rem !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-weight: 700 !important;
}
nav.site-nav li.has-dropdown > a::after { content: " \25BE"; font-size: 0.7em; }
nav.site-nav .hamburger { display: none; }
@media (max-width: 700px) {
  nav.site-nav ul.dropdown {
    display: block;
    position: static;
    transform: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 18px;
    margin: 0;
  }
  nav.site-nav li.has-dropdown { display: block !important; width: 100%; }
}

/* Mobile: restore hamburger toggle (nav-standard.css force-disables it) */
@media (max-width: 700px) {
  nav.site-nav .hamburger {
    display: flex !important;
    position: absolute;
    left: 6px;
    top: 10px;
    transform: none;
    z-index: 2;
    height: 48px;
    width: 48px;
    border: 1px solid rgba(11, 79, 179, 0.25);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }
  nav.site-nav .hamburger .hamburger-box { width: 24px; height: 18px; position: relative; display: block; }
  nav.site-nav .hamburger .hamburger-inner,
  nav.site-nav .hamburger .hamburger-inner::before,
  nav.site-nav .hamburger .hamburger-inner::after {
    position: absolute; width: 24px; height: 2.5px; background: #0b4fb3; border-radius: 2px; content: ""; left: 0; display: block;
  }
  nav.site-nav .hamburger .hamburger-inner { top: 8px; }
  nav.site-nav .hamburger .hamburger-inner::before { top: -7px; }
  nav.site-nav .hamburger .hamburger-inner::after { top: 7px; }
  nav.site-nav .nav-container { min-height: 68px; align-items: flex-start !important; }
  nav.site-nav .nav-links {
    max-height: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    padding: 0 10px !important;
    transition: max-height 0.35s ease !important;
  }
  nav.site-nav.nav-open .nav-links {
    max-height: 900px !important;
    padding: 68px 10px 14px !important;
    border-top: 2px solid #0b4fb3 !important;
  }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: #f5f7fa !important;
  border-top: 1px solid var(--p3-border);
  color: #44506b !important;
  text-align: center;
  padding: 34px 18px 30px !important;
  margin-top: 70px;
  font-size: 0.95rem;
  line-height: 1.7;
}
footer.site-footer .footer-name {
  font-weight: 800;
  color: var(--p3-ink);
  font-size: 1.02rem;
  margin-bottom: 8px;
}
footer.site-footer .footer-nap { margin-bottom: 10px; }
footer.site-footer .footer-scope {
  max-width: 640px;
  margin: 0 auto 12px;
  font-size: 0.9rem;
  color: #56658a;
}
footer.site-footer .footer-links { margin-bottom: 10px; font-weight: 700; }
footer.site-footer .footer-links a { color: var(--p3-brand); text-decoration: underline; text-underline-offset: 2px; }
footer.site-footer .footer-legal { font-size: 0.85rem; color: #6b7793; }
footer.site-footer a { color: var(--p3-brand); }

/* ---------- Generic page shells for new pages ---------- */
.page-hero {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 46px 26px 38px;
  text-align: center;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 12% 4%, rgba(11, 79, 179, 0.13), transparent 38%),
    radial-gradient(circle at 96% 95%, rgba(192, 122, 45, 0.12), transparent 40%);
  border: 1px solid var(--p3-border);
  border-radius: 22px;
  box-shadow: 0 28px 54px rgba(16, 33, 63, 0.14);
}
.page-hero .kicker {
  display: inline-block;
  background: rgba(11, 79, 179, 0.1);
  color: var(--p3-brand-deep);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 12px; line-height: 1.18; }
.page-hero .lead {
  max-width: 760px;
  margin: 0 auto 6px;
  color: var(--p3-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}
.page-hero .geo-line { margin-top: 10px; font-size: 0.94rem; color: #56658a; font-weight: 600; }

.cta-row { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
}
.cv-btn.primary { background: var(--p3-brand); color: #fff !important; box-shadow: 0 10px 22px rgba(11, 79, 179, 0.25); }
.cv-btn.primary:hover { background: var(--p3-brand-deep); }
.cv-btn.ghost { background: #edf3ff; color: var(--p3-brand-deep) !important; border-color: #d4e2fb; }
.cv-btn.ghost:hover { border-color: var(--p3-brand); }

.content-wrap { max-width: 880px; margin: 26px auto; padding: 34px 30px; background: rgba(255,255,255,0.93); border: 1px solid var(--p3-border); border-radius: 22px; box-shadow: 0 16px 32px rgba(16,33,63,0.11); }
.content-wide { max-width: 1180px; margin: 26px auto; padding: 34px 30px; background: rgba(255,255,255,0.93); border: 1px solid var(--p3-border); border-radius: 22px; box-shadow: 0 16px 32px rgba(16,33,63,0.11); }
.content-wrap h2, .content-wide h2 { font-size: 1.45rem; margin: 30px 0 10px; }
.content-wrap h2:first-child, .content-wide h2:first-child { margin-top: 0; }
.content-wrap h3, .content-wide h3 { font-size: 1.12rem; margin: 22px 0 8px; }
.content-wrap p, .content-wide p { color: #2d3a52; }
.content-wrap ul, .content-wide ul { color: #2d3a52; }
@media (max-width: 700px) {
  .page-hero { margin: 14px 10px 0; padding: 30px 16px 26px; }
  .content-wrap, .content-wide { margin: 18px 10px; padding: 22px 18px; }
}

/* ---------- Card grids ---------- */
.cv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 18px 0; }
.cv-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0; }
@media (max-width: 900px) { .cv-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cv-grid, .cv-grid-3 { grid-template-columns: 1fr; } }
.cv-card {
  background: linear-gradient(180deg, #ffffff, #fdfdff);
  border: 1px solid rgba(11, 79, 179, 0.14);
  border-radius: var(--p3-radius);
  padding: 20px 18px;
  box-shadow: 0 12px 24px rgba(10, 36, 72, 0.07);
}
.cv-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.cv-card p { margin: 0; color: #3d4c69; font-size: 0.97rem; line-height: 1.6; }
a.cv-card { display: block; text-decoration: none !important; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
a.cv-card:hover { transform: translateY(-4px); border-color: rgba(11, 79, 179, 0.32); box-shadow: 0 22px 36px rgba(10, 36, 72, 0.14); }
a.cv-card .card-more { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--p3-brand); font-size: 0.92rem; }

/* ---------- Process steps ---------- */
.cv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0; counter-reset: step; }
@media (max-width: 760px) { .cv-steps { grid-template-columns: 1fr; } }
.cv-step { background: #fff; border: 1px solid rgba(11, 79, 179, 0.14); border-radius: var(--p3-radius); padding: 20px 18px; box-shadow: 0 12px 24px rgba(10, 36, 72, 0.07); }
.cv-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--p3-brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
}
.cv-step h3 { margin: 0 0 6px; font-size: 1.03rem; }
.cv-step p { margin: 0; color: #3d4c69; font-size: 0.96rem; line-height: 1.6; }

/* ---------- FAQ (static) ---------- */
.cv-faq { margin: 18px 0; }
.cv-faq details { background: #fff; border: 1px solid rgba(11, 79, 179, 0.15); border-radius: 12px; padding: 4px 16px; margin-bottom: 10px; }
.cv-faq summary { cursor: pointer; font-weight: 800; color: var(--p3-ink); padding: 10px 0; font-size: 1rem; }
.cv-faq details[open] { border-color: rgba(11, 79, 179, 0.32); }
.cv-faq .faq-a { padding: 2px 0 12px; color: #2d3a52; line-height: 1.65; }
.cv-faq .faq-a p { margin: 0 0 8px; }

/* ---------- Pricing summary boxes ---------- */
.cv-pricebox { background: var(--p3-sky); border: 1px solid rgba(11, 79, 179, 0.2); border-radius: var(--p3-radius); padding: 18px 20px; margin: 14px 0; }
.cv-pricebox .price-line { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed rgba(11, 79, 179, 0.22); font-size: 0.98rem; }
.cv-pricebox .price-line:last-of-type { border-bottom: 0; }
.cv-pricebox .price-line strong { color: var(--p3-brand-deep); white-space: nowrap; }
.cv-pricebox .price-note { font-size: 0.87rem; color: #56658a; margin-top: 8px; }

/* ---------- Notes and callouts ---------- */
.cv-note { background: var(--p3-cream); border-left: 4px solid var(--p3-accent); border-radius: 10px; padding: 14px 16px; margin: 16px 0; color: #4a3a1f; font-size: 0.95rem; line-height: 1.6; }
.cv-callout { background: var(--p3-sky); border-left: 4px solid var(--p3-brand); border-radius: 10px; padding: 14px 16px; margin: 16px 0; color: #1d3763; font-size: 0.97rem; line-height: 1.6; }

/* ---------- Unified contact form ---------- */
.cv-form label { display: block; color: var(--p3-brand-deep); font-weight: 700; margin: 12px 0 5px; font-size: 0.96rem; }
.cv-form input, .cv-form select, .cv-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(11, 79, 179, 0.35);
  border-radius: 8px;
  padding: 12px 10px;
  font-size: 1rem;
  background: #fff;
  color: #1d2940;
  font-family: inherit;
}
.cv-form textarea { min-height: 110px; }
.cv-form button[type="submit"] {
  margin-top: 14px;
  width: 100%;
  background: var(--p3-brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 12px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}
.cv-form button[type="submit"]:hover { background: var(--p3-brand-deep); }
.cv-form .form-legal { font-size: 0.84rem; color: #56658a; line-height: 1.55; margin-top: 10px; }
.cv-form .form-legal a { color: var(--p3-brand); text-decoration: underline; }
.cv-form .hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cv-form .form-status { margin-top: 10px; font-weight: 700; font-size: 0.95rem; color: var(--p3-brand-deep); }

/* ---------- Blog post additions ---------- */
.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: 760px;
  margin: 26px auto;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(11, 79, 179, 0.16);
  border-radius: var(--p3-radius);
  box-shadow: 0 12px 24px rgba(10, 36, 72, 0.07);
  text-align: left;
}
.author-box img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; border: 2px solid rgba(11, 79, 179, 0.25); flex-shrink: 0; }
.author-box .author-meta { font-size: 0.95rem; color: #3d4c69; line-height: 1.55; }
.author-box .author-meta strong { color: var(--p3-ink); font-size: 1.02rem; }
.author-box .author-meta a { color: var(--p3-brand); font-weight: 700; }
.post-disclaimer { max-width: 760px; margin: 14px auto 0; font-size: 0.85rem; color: #6b7793; text-align: center; padding: 0 14px; }
@media (max-width: 700px) { .author-box { flex-direction: column; text-align: center; margin: 20px 10px; } .author-box .author-meta { text-align: center; } }

/* ---------- Newsletter block (activated when Kit embed is added) ---------- */
.cv-newsletter { max-width: 760px; margin: 26px auto; padding: 20px 22px; background: var(--p3-sky); border: 1px solid rgba(11, 79, 179, 0.2); border-radius: var(--p3-radius); text-align: center; }
.cv-newsletter h3 { margin: 0 0 6px; }
.cv-newsletter p { margin: 0 0 10px; color: #3d4c69; font-size: 0.95rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs { max-width: 1180px; margin: 14px auto 0; padding: 0 26px; font-size: 0.85rem; color: #6b7793; }
.crumbs a { color: var(--p3-brand); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Law list (AI governance) ---------- */
.law-item { padding: 12px 0; border-bottom: 1px dashed rgba(11, 79, 179, 0.2); }
.law-item:last-child { border-bottom: 0; }
.law-item strong { color: var(--p3-brand-deep); }
.law-item .law-what { display: block; color: #3d4c69; font-size: 0.95rem; margin-top: 3px; line-height: 1.6; }

/* ---------- Sticky booking link ---------- */
a.sticky-cta { text-decoration: none !important; display: none; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.section-label {
  display: inline-block;
  background: rgba(11, 79, 179, 0.1);
  color: var(--p3-brand-deep);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.asof { font-size: 0.85rem; color: #6b7793; font-style: italic; }
