/* =========================================================
   PROFITIZE CONSULTING — site styles
   Layout: navy hero with headshot -> trades strip -> white
   service cards -> navy "job ledger" (gross vs net) -> tiers
   -> about + credentials -> contact form -> navy footer.
   Brand colors live in :root below. Change them in one place.
   ========================================================= */
:root {
  --navy: #0B1838;        /* deep background */
  --navy-2: #142A5E;      /* raised navy */
  --royal: #1E40AF;       /* royal blue (brand) */
  --royal-bright: #2D56D6;
  --gold: #C9982B;        /* gold (brand) */
  --gold-bright: #E3B94A;
  --gold-text: #8A6510;   /* gold dark enough for text on white */
  --gold-tint: #FBF4E1;
  --ink: #141B2D;
  --slate: #4A5571;
  --mist: #C3CCE2;        /* light text on navy */
  --line: #DCE1EB;
  --paper: #F4F6FA;
  --white: #FFFFFF;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --radius: 10px;
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 700; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--f-display);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-text);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--gold); border-radius: 2px; flex: none; }
.eyebrow-light { color: var(--gold-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; border-radius: 8px; padding: 14px 22px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
  line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-bright); color: var(--navy); }
.btn-gold:hover { background: #F0C95E; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 1.3rem; letter-spacing: .02em; text-transform: uppercase; color: var(--royal); }
.brand-sub { font-family: var(--f-display); font-weight: 700; font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-text); margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem; }
.site-nav a:not(.btn):hover { color: var(--royal); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { left: 0; top: -7px; }
.nav-toggle .bars::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(45,86,214,.35), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #0E1F49 100%);
  color: var(--white);
  padding-block: clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-title {
  font-weight: 850; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(2.2rem, 5.2vw, 4.25rem); line-height: 1.0; letter-spacing: -0.01em;
  display: flex; flex-direction: column; gap: .12em;
}
.hero-title .gold { color: var(--gold-bright); }
.hero-lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--white); max-width: 34ch; font-weight: 500; }
.hero-handyman { color: var(--mist); max-width: 52ch; border-left: 3px solid var(--gold); padding-left: 16px; }
.btn-row { margin-top: 6px; }

.hero-photo { margin: 0; position: relative; justify-self: center; width: 100%; max-width: 400px; }
.photo-frame { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; max-width: 100%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.photo-frame::after { content: ""; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: 14px; z-index: -0;
}
.photo-frame { z-index: 1; }
.photo-tag {
  position: absolute; z-index: 2; left: -18px; bottom: 22px;
  background: var(--white); color: var(--navy); border-radius: 8px; padding: 10px 16px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); display: flex; flex-direction: column; line-height: 1.3;
}
.photo-tag strong { font-family: var(--f-display); font-size: 1.05rem; }
.photo-tag span { font-size: .8rem; color: var(--slate); font-weight: 600; }

/* ---------- Trades strip ---------- */
.trades { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 26px; }
.trades-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.trades-label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.trade-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.trade-list li {
  font-family: var(--f-display); font-weight: 700; font-size: .95rem; color: var(--royal);
  background: #EEF2FC; border: 1px solid #D6DEF6; padding: 6px 12px; border-radius: 999px;
}
.trades-note { width: 100%; color: var(--slate); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 104px); }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; color: var(--navy); }
.section-navy h2 { color: var(--white); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service {
  min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 24px; display: flex; flex-direction: column; gap: 12px;
  border-top: 4px solid var(--royal);
  transition: box-shadow .2s, transform .2s;
}
.service:hover { box-shadow: 0 18px 40px -22px rgba(11,24,56,.35); transform: translateY(-2px); }
.service-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--gold-tint); display: grid; place-items: center; }
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.service > p { color: var(--slate); font-size: .98rem; }
.service ul { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--line); }
.service li { font-size: .93rem; padding-left: 18px; position: relative; color: var(--ink); }
.service li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--gold); border-radius: 1px; }

/* ---------- Gross vs net ---------- */
.section-navy { background:
  linear-gradient(180deg, var(--navy), #0E1F49); }
.net-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.net-copy { min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.net-copy p { color: var(--mist); max-width: 54ch; }
.net-copy strong { color: var(--white); }
.net-copy .btn { margin-top: 8px; }

.ledger { min-width: 0; background: var(--white); color: var(--ink); border-radius: 12px; padding: 26px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.ledger-title { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; color: var(--navy); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ledger-title span { font-family: var(--f-body); font-size: .75rem; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: .1em; }
.ledger-rows { margin: 0; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.ledger-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ledger-rows dt { font-family: var(--f-body); color: var(--slate); }
.ledger-rows dd { margin: 0; font-weight: 600; text-align: right; }
.ledger-rows dd small { font-size: .78rem; color: var(--slate); margin-left: 6px; font-weight: 500; }
.ledger-rows .neg { color: #B4332A; }
.ledger-sub { background: var(--paper); margin-inline: -10px; padding-inline: 10px !important; border-radius: 6px; border-bottom-color: transparent !important; }
.ledger-sub dt { color: var(--ink); font-weight: 600; }
.ledger-total { border-bottom: 0 !important; border-top: 2px solid var(--navy); margin-top: 2px; }
.ledger-total dt { color: var(--navy); font-weight: 800; font-family: var(--f-display); }
.ledger-total dd { color: var(--gold-text); font-size: 1.2rem; font-weight: 600; }
.ledger-bar { display: flex; height: 16px; border-radius: 4px; overflow: hidden; margin-top: 18px; }
.seg-direct { background: #AEB8CF; }
.seg-overhead { background: var(--royal); }
.seg-net { background: var(--gold-bright); }
.ledger-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .8rem; color: var(--slate); }
.ledger-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.k-direct { background: #AEB8CF; } .k-overhead { background: var(--royal); } .k-net { background: var(--gold-bright); }
.ledger-note { margin-top: 16px; font-size: .92rem; color: var(--ink); background: var(--gold-tint); border-radius: 6px; padding: 10px 12px; }

/* ---------- Tiers ---------- */
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tier { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; background: var(--white); }
.tier-feature { border: 2px solid var(--gold); background: linear-gradient(180deg, var(--gold-tint), var(--white) 55%); }
.tier-tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--royal); background: #EEF2FC; padding: 5px 10px; border-radius: 999px; }
.tier-feature .tier-tag { color: var(--navy); background: var(--gold-bright); }
.tier h3 { font-size: 1.45rem; font-weight: 800; color: var(--navy); }
.tier > p { color: var(--slate); }
.checks { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.checks li { position: relative; padding-left: 28px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--royal);
  -webkit-mask: radial-gradient(circle, #000 99%, transparent 100%);
}
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.2em + 4px); width: 5px; height: 9px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-copy { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-copy > p { max-width: 62ch; color: #2A3349; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.result { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.result-figure { font-family: var(--f-display); font-weight: 850; font-stretch: 110%; font-size: 1.6rem; color: var(--royal); line-height: 1.1; }
.result p:not(.result-figure) { font-size: .93rem; color: var(--slate); }

.creds { min-width: 0; background: var(--navy); color: var(--white); border-radius: 14px; padding: 30px; display: flex; flex-direction: column; gap: 24px; position: relative; overflow: hidden; }
.creds::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.creds-title { font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; color: var(--white); }
.cred-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hl { background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hl-fig { font-family: var(--f-display); font-weight: 850; font-stretch: 110%; font-size: 1.75rem; line-height: 1; color: var(--gold-bright); }
.hl-cap { font-size: .78rem; line-height: 1.35; color: var(--mist); }
.cred-list { margin: 0; display: flex; flex-direction: column; }
.cred-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); }
.cred-row dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); font-weight: 700; padding-top: 3px; }
.cred-row dd { margin: 0; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cred-row dd span { font-size: .93rem; line-height: 1.45; color: #E6EAF5; }
.cred-row dd.tool-chips { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.cred-row dd.tool-chips span { font-size: .8rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--navy-2); color: #DCE3F5; border: 1px solid rgba(255,255,255,.1); }

/* ---------- Also ---------- */
.also { background: var(--royal); color: var(--white); padding-block: 26px; }
.also-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.also h2 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); font-weight: 700; }
.also ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.also li { font-weight: 600; display: inline-flex; align-items: center; gap: 9px; }
.also li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--gold-bright); flex: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-copy { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-copy > p { color: var(--slate); max-width: 46ch; }
.steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; min-height: 28px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-bright); color: var(--navy); font-family: var(--f-display); font-weight: 800; font-size: .9rem;
}
.email-box { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.email-box span { font-size: .85rem; color: var(--slate); font-weight: 600; }
.email-box a { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; text-decoration: none; overflow-wrap: anywhere; }
.email-box a:hover { text-decoration: underline; }

.form { min-width: 0; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 24px 50px -30px rgba(11,24,56,.35); display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: #B4332A; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid #C9D0DF; border-radius: 8px; padding: 11px 12px; width: 100%; min-height: 46px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(30,64,175,.18); }
.field .invalid { border-color: #B4332A; }
.hp { display: none !important; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #1F7A3E; }
.form-status.err { color: #B4332A; }
.form-fine { font-size: .82rem; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--mist); padding-block: 36px; font-size: .93rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-family: var(--f-display); font-weight: 800; color: var(--white); }
.footer-tag { font-size: .85rem; color: var(--gold-bright); }
.footer-contact, .footer-legal { display: flex; flex-direction: column; gap: 4px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
  .site-header { position: sticky; }
  .header-row { position: relative; }

  .hero-grid, .net-grid, .about-grid, .contact-grid, .tier-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; justify-self: start; margin-left: 18px; margin-bottom: 18px; }
}
@media (max-width: 600px) {
  .service-grid, .results, .field-row { grid-template-columns: 1fr; }
  .hero-photo { max-width: 260px; }
  .btn-row .btn { width: 100%; }
  .ledger { padding: 20px; }
  .tier, .creds { padding: 22px; }
  .cred-row { grid-template-columns: 1fr; gap: 8px; }
  .hl { padding: 12px 10px; }
  .hl-fig { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Privacy page ---------- */
.legal { padding-block: 56px 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-top: 32px; margin-bottom: 8px; }
.legal p, .legal li { color: #2A3349; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin-top: 8px; }
.legal .muted { color: var(--slate); }
