/* HomeProCalls — agency site. Vanilla CSS, no framework. */

:root {
  --navy: #0f2740;
  --navy-dark: #0a1b2e;
  /* Accent. Contrast is symmetric, so this one value governs both white text
     on the accent (.btn-primary) and accent text on the page (a, .logo span,
     .eyebrow, nav hover). Sections alternate between --bg and --bg-alt, so
     the value is set against the darker of the two: 4.53:1 on --bg-alt
     #f6f8fa, 4.82:1 on white. Hover #0d6f63 is 6.05:1. Accent text on a
     --teal-light tint does not clear 4.5:1 at this value, so those spots use
     --teal-deep below. */
  --teal: #118072;
  /* Accent text sitting on --teal-light rather than on the page background.
     Same value as the accent hover state; 5.39:1 on --teal-light. */
  --teal-deep: #0d6f63;
  --teal-light: #e6f5f3;
  --ink: #1a2430;
  --gray: #5b6674;
  --line: #e2e6eb;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(15, 39, 64, 0.07);
  --shadow-lg: 0 12px 32px rgba(15, 39, 64, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo .logo-word { color: inherit; }
.logo .logo-word span { color: var(--teal); }
.logo-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: block;
}
a.logo:hover { text-decoration: none; }

nav.main-nav { display: flex; gap: 28px; align-items: center; }
nav.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--teal); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #0d6f63; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }
/* .btn-outline is navy-on-transparent, but its only use is the navy hero, where it
   rendered navy-on-navy and was effectively invisible. Inverted here for that one
   context; the generic light-background rule above is unchanged. */
.hero .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.hero .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 72px 0 64px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #7fd6c9;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 780px;
}
.hero h1 em { font-style: normal; color: #7fd6c9; }
.hero p.lead {
  font-size: 1.15rem;
  color: #cfd9e2;
  max-width: 640px;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 0.9rem; color: #9fb0bf; }

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
  font-size: 0.92rem;
  color: #d7e0e7;
}
.hero-checks span::before { content: "✓ "; color: #7fd6c9; font-weight: 800; }

/* ---------- Section shells ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}
h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--navy);
}
.section-intro { color: var(--gray); max-width: 640px; margin-bottom: 40px; font-size: 1.02rem; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-deep);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--navy); }
.step p { color: var(--gray); font-size: 0.94rem; margin: 0; }

/* ---------- Portfolio / trades ---------- */
.trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.trade-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.trade-card .emoji { font-size: 1.6rem; }
.trade-card h3 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.trade-card .status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  margin-top: 6px;
}
.status-live { background: #e3f6ea; color: #167a3d; }
.status-open { background: var(--teal-light); color: var(--teal-deep); }

/* ---------- Value cards ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.value-card .emoji { font-size: 1.5rem; margin-bottom: 10px; }
.value-card h3 { font-size: 1rem; margin: 0 0 8px; color: var(--navy); }
.value-card p { font-size: 0.92rem; color: var(--gray); margin: 0; }

/* ---------- Pricing callout ---------- */
.pricing-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.pricing-box h2 { color: var(--white); }
.pricing-list { list-style: none; padding: 0; margin: 0; color: #d7e0e7; font-size: 0.95rem; }
.pricing-list li { margin-bottom: 8px; }
.pricing-list li::before { content: "✓ "; color: #7fd6c9; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--navy); }
.faq-item p { margin: 0; color: var(--gray); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.contact-info-item { display: flex; gap: 12px; margin-bottom: 20px; }
.contact-info-item .emoji { font-size: 1.3rem; }
.contact-info-item h3 { margin: 0 0 2px; font-size: 0.95rem; color: var(--navy); }
.contact-info-item p { margin: 0; color: var(--gray); font-size: 0.9rem; }

form.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Multi-select service-area field ---------- */
fieldset.checkbox-field {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  min-width: 0;
}
fieldset.checkbox-field legend {
  padding: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.field-hint {
  font-weight: 500;
  color: var(--gray);
  font-size: 0.82rem;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.12s, background 0.12s;
  line-height: 1.3;
}
.checkbox-item:hover { border-color: #c3ccd6; }
.checkbox-item input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.checkbox-item:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-light);
}
.checkbox-item:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 1px; }

/* honeypot field — hidden from real visitors, catches bots that auto-fill everything */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-status { margin-top: 14px; font-size: 0.92rem; display: none; }
.form-status.success { display: block; color: #167a3d; }
.form-status.error { display: block; color: #b3261e; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #9fb0bf;
  padding: 44px 0 28px;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-inner .logo { color: var(--white); margin-bottom: 10px; }
.footer-inner .logo-mark { width: 28px; height: 28px; }
.footer-inner p { max-width: 380px; color: #8fa0af; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #b9c6d0; }
.footer-bottom {
  border-top: 1px solid #1c3349;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #6f8493;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .hero h1 { font-size: 2rem; }
  .steps, .value-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .pricing-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .steps, .value-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
}

/* A heading promoted from <h3> to <h2> so the outline has no skipped level.
   Identical metrics to h3 — semantics changed, rendering did not. */
h2.lv2 { font-size: 1.15rem; margin: 0 0 8px; }

/* ---------- Resources / articles ---------- */
.article-hero { background: var(--navy); color: var(--white); padding: 46px 0 40px; }
.article-hero h1 { font-size: 2.05rem; line-height: 1.2; margin: 6px 0 14px; max-width: 20ch; }
.article-hero .lead { color: #c9d6e0; font-size: 1.05rem; max-width: 62ch; margin: 0; }
.article-hero .meta { color: #8fa5b8; font-size: 0.85rem; margin-top: 16px; }
.breadcrumb { font-size: 0.82rem; color: #8fa5b8; margin-bottom: 4px; }
.breadcrumb a { color: #7fd6c9; }

.article-body { max-width: 760px; }
.article-body h2 { font-size: 1.45rem; margin: 44px 0 14px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.08rem; margin: 28px 0 8px; color: var(--navy); }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink); }
.article-body li { margin-bottom: 7px; }
.article-body strong { color: var(--navy); }

.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 34px; }
.toc h2 { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 0.95rem; }
.toc li { margin-bottom: 5px; }

.table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
  -webkit-overflow-scrolling: touch;
  /* Scroll-shadow affordance: the right-hand shadow shows only while there is
     more table to the right, so narrow screens get a visible "swipe me" cue and
     wide screens get nothing. Pure CSS -- the local/scroll attachment split is
     what makes the covers move with the content and the shadows stay put. */
  background:
    linear-gradient(to right, var(--bg) 30%, rgba(255, 255, 255, 0)) left center,
    linear-gradient(to left, var(--bg) 30%, rgba(255, 255, 255, 0)) right center,
    radial-gradient(farthest-side at 0 50%, rgba(15, 39, 64, 0.16), rgba(15, 39, 64, 0)) left center,
    radial-gradient(farthest-side at 100% 50%, rgba(15, 39, 64, 0.16), rgba(15, 39, 64, 0)) right center;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
table.data { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 520px; }
table.data caption { caption-side: top; text-align: left; font-size: 0.85rem; color: var(--gray); padding-bottom: 8px; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
table.data thead th { background: var(--bg-alt); color: var(--navy); font-size: 0.82rem; letter-spacing: 0.02em; border-bottom: 2px solid var(--line); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { width: 30%; }

.callout { background: var(--teal-light); border-left: 3px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 0 0 24px; }
.callout p { margin: 0 0 10px; font-size: 0.96rem; }
.callout p:last-child { margin-bottom: 0; }
.callout .label { display: block; font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal-deep); font-weight: 700; margin-bottom: 6px; }

.pull { border-left: 3px solid var(--line); padding: 4px 0 4px 20px; margin: 0 0 22px; color: var(--gray); font-size: 1rem; font-style: italic; }
.pull cite { display: block; font-style: normal; font-size: 0.82rem; color: #8a95a3; margin-top: 8px; }

.source-note { font-size: 0.85rem; color: var(--gray); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 34px 0 0; }
.source-note strong { color: var(--navy); }

.cta-band { background: var(--navy); border-radius: var(--radius); padding: 30px 32px; margin: 40px 0 0; color: var(--white); }
.cta-band h2 { color: var(--white); font-size: 1.3rem; margin: 0 0 10px; }
.cta-band p { color: #c2d1dc; font-size: 0.97rem; margin: 0 0 18px; max-width: 56ch; }
.cta-band .btn-primary:hover { background: #0d6f63; }

.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.res-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.res-card .tag { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-deep); font-weight: 700; margin-bottom: 8px; }
.res-card h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--navy); line-height: 1.35; }
.res-card h3 a { color: inherit; }
.res-card p { font-size: 0.9rem; color: var(--gray); margin: 0 0 14px; }
.res-card .more { font-size: 0.88rem; font-weight: 600; margin-top: auto; }

.related { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 26px; }
.related h2 { font-size: 1.05rem; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; font-size: 0.93rem; }
.related li { margin-bottom: 8px; break-inside: avoid; }

@media (max-width: 860px) {
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .article-hero h1 { font-size: 1.75rem; }
}
@media (max-width: 540px) {
  .res-grid { grid-template-columns: 1fr; }
  .related ul { columns: 1; }
  .cta-band { padding: 24px 22px; }
}
