/* Prism Consulting LLC - Phase I public site styles */
:root {
  --navy: #14213d;
  --navy-2: #1d2f57;
  --teal: #0f766e;
  --teal-light: #e6f4f2;
  --gold: #b7791f;
  --ink: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --focus: #f59e0b;
  --max: 1120px;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.5em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* Header: a utility bar (About, Resources, Contact, language) above the main bar of service categories. */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }

.util-bar { border-bottom: 1px solid rgba(255,255,255,.12); }
.util-bar .container { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; min-height: 38px; }
.util-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.util-list li { margin: 0; }
.util-list a {
  color: #cbd5e1; text-decoration: none; font-size: .88rem; padding: .3rem .6rem; border-radius: 6px;
}
.util-list a:hover, .util-list a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }

.main-bar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px;
}
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, #2dd4bf 0%, #60a5fa 50%, #f59e0b 100%);
}
.brand-name { font-size: 1.05rem; line-height: 1.1; }
.brand-name small { display: block; font-weight: 400; font-size: .75rem; opacity: .85; letter-spacing: .04em; }

.nav-toggle {
  display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px; padding: .45rem .8rem; font: inherit; cursor: pointer;
}

/* Language selector (always in the utility bar, so it never moves with the menus) */
.lang-dd { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem; background: transparent; color: #e5e7eb;
  border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: .3rem .6rem; font: inherit;
  font-size: .85rem; font-weight: 600; cursor: pointer;
}
.lang-btn:hover, .lang-dd.is-open .lang-btn { color: #fff; border-color: #fff; }
.lang-globe { width: 18px; height: 18px; flex: none; }
.lang-chev { width: 14px; height: 14px; transition: transform .2s ease; }
.lang-dd.is-open .lang-chev { transform: rotate(180deg); }
.lang-code { letter-spacing: .04em; }
.lang-menu {
  list-style: none; margin: 0; padding: .35rem; position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 170px; background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(20,33,61,.22);
  display: none; z-index: 70;
}
.lang-dd.is-open .lang-menu { display: block; }
.lang-menu li { margin: 0; }
.lang-menu a {
  display: block; padding: .55rem .75rem; border-radius: 6px; color: var(--navy); text-decoration: none; font-weight: 500;
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--teal-light); color: var(--navy); }
.lang-menu a[aria-current="true"] { font-weight: 700; color: var(--teal); }
.lang-menu a[aria-current="true"]::after { content: " \2713"; }

/* Main navigation: one top-level item per service category, each with a hanging panel. */
.nav-list { list-style: none; display: flex; align-items: center; gap: .2rem; margin: 0; padding: 0; }
.nav-list > li { position: static; display: flex; align-items: center; margin: 0; }
.nav-list a.top-link {
  color: #e5e7eb; text-decoration: none; font-weight: 500; padding: .5rem .6rem; border-radius: 6px; white-space: nowrap;
}
.nav-list a.top-link:hover, .nav-list a.top-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.caret {
  background: transparent; border: 0; color: #e5e7eb; padding: .35rem .25rem .35rem 0; cursor: pointer;
  line-height: 0; border-radius: 6px;
}
.caret:hover { color: #fff; }
.caret svg { width: 16px; height: 16px; transition: transform .2s ease; }
.has-panel.is-open > .caret svg { transform: rotate(180deg); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* Phone-only items (About, Resources & FAQ, Contact) are shown inside the mobile menu. */
.nav-list > li.m-only { display: none; }

/* The hanging panel drops below the header across the full width. */
.panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; color: var(--ink); border-top: 3px solid var(--teal);
  box-shadow: 0 18px 40px rgba(20,33,61,.18);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.has-panel.is-open > .panel { opacity: 1; visibility: visible; transform: none; }
.panel-inner {
  width: min(100% - 2.5rem, var(--max)); margin-inline: auto; padding: 1rem 0;
  display: grid; gap: .4rem .8rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.panel a.item {
  display: block; text-decoration: none; color: var(--navy); padding: .55rem .7rem; border-radius: 8px;
}
.panel a.item:hover, .panel a.item:focus-visible { background: var(--teal-light); color: var(--navy); }
.panel a.item b { display: block; color: var(--navy); margin-bottom: .15rem; }
.panel a.item small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.panel-foot {
  grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.panel-foot a { font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block; padding: .75rem 1.25rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: #0b5f59; color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--teal-light); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--teal-light) 0%, #fff 100%); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero .eyebrow { color: var(--teal); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.hero p.lead { margin-top: .5rem; }

.page-hero { background: var(--teal-light); padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-hero p.lead { margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: .75rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* Cards and grids */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column;
}
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; padding-top: .75rem; }
.icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--teal-light);
  display: inline-grid; place-items: center; color: var(--teal); font-weight: 800; margin-bottom: .75rem;
}

.two-col { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr .9fr; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.callout {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
}
.callout h2, .callout h3 { color: #fff; margin-top: 0; }
.callout p { color: #e5e7eb; }

.note {
  border-left: 4px solid var(--gold); background: #fff8eb; padding: 1rem 1.25rem; border-radius: 6px; margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.25rem 2.75rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700;
}

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.75rem; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

details { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: .75rem; background: #fff; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details[open] summary { margin-bottom: .5rem; }

/* Forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--muted); }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.consent input { margin-top: .3rem; }
.form-status { font-weight: 600; min-height: 1.5em; }

/* Contact details */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 1rem; }
.contact-list strong { display: block; color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .75rem; }
.site-footer ul { list-style: none; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; }
.disclaimer { font-size: .85rem; opacity: .9; }

/* Consultation form (Phase II) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.phone-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.phone-row input { flex: 1 1 200px; }
.verify-block { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.code-row { margin-top: .75rem; display: grid; gap: .35rem; }
.verified { margin: .75rem 0 0; color: var(--teal); font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font: inherit; }
.field-error { color: #b91c1c; font-size: .9rem; font-weight: 600; }
.form-status.is-error { color: #b91c1c; }
.form-unavailable { padding: 1rem 1.25rem; background: #fff8eb; border-left: 4px solid var(--gold); border-radius: 6px; }
.success { background: var(--teal-light); border-left: 4px solid var(--teal); padding: 1.25rem 1.5rem; border-radius: 6px; }
.success h3 { margin-top: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--navy); background: var(--bg-soft); }

/* Phones: the main menu collapses behind the Menu button; each category opens as an accordion section. */
@media (max-width: 860px) {
  .util-list { display: none; }
  .util-bar .container { min-height: 40px; }
  .main-bar .container { min-height: 60px; }
  .nav-toggle { display: inline-block; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-2); flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1rem; max-height: calc(100vh - 100px); overflow-y: auto;
  }
  .nav-list.is-open { display: flex; }
  .nav-list > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav-list > li.m-only { display: flex; }
  .nav-list a.top-link { display: block; flex: 1; padding: .8rem 0; }
  .nav-list a.top-link:hover { background: none; }
  .caret { padding: .8rem .25rem; }
  .panel {
    position: static; flex-basis: 100%; box-shadow: none; border: 0; background: transparent;
    opacity: 1; visibility: visible; transform: none; transition: none; display: none;
  }
  .has-panel.is-open > .panel { display: block; }
  .panel-inner { grid-template-columns: 1fr; padding: 0 0 .75rem; width: 100%; gap: .25rem; }
  .panel a.item { color: #fff; padding: .6rem .5rem; }
  .panel a.item b { color: #fff; }
  .panel a.item small { color: #cbd5e1; }
  .panel a.item:hover, .panel a.item:focus-visible { background: rgba(255,255,255,.08); color: #fff; }
  .panel-foot { border-top-color: rgba(255,255,255,.15); color: #e5e7eb; }
  .panel-foot a { color: #fff; }
}
@media (max-width: 380px) {
  .brand-name small { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
