/* Tradecall Pro inner pages (trade pages, trades directory, pricing). Loaded after /css/site.css. */

main { display: block; }
.sec { padding: clamp(56px, 7vw, 92px) 0; }
.sec.alt { background: var(--mist); }
.sh { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.sh h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); margin-top: 14px; }
.sh p { margin-top: 14px; font-size: 1.08rem; }
.sec.dark { background: var(--navy); color: #D5DBEA; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec.dark .eyebrow { color: var(--sky); }

/* ---------- Page hero (photo blended into navy) ---------- */
.phero { position: relative; overflow: hidden; background: var(--navy); color: var(--white);
  background-image: radial-gradient(900px 500px at 85% 20%, rgba(38,58,122,.55), transparent 65%), radial-gradient(700px 400px at 0% 100%, rgba(22,34,74,.9), transparent 70%); }
.phero-in { position: relative; max-width: 1440px; margin: 0 auto; }
.phero .wrap { position: relative; z-index: 2; min-height: 540px; display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(44px, 6vw, 76px); }
.phero .txt { max-width: 640px; }
.crumbs { font-size: .85rem; color: var(--sky); margin-bottom: 18px; }
.crumbs a { color: var(--sky); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 8px; }
.phero h1 { color: #fff; font-size: clamp(2rem, 4.1vw, 3.15rem); margin: 18px 0 20px; letter-spacing: -0.02em; }
.phero .sub { color: #D5DBEA; font-size: clamp(1.02rem, 1.4vw, 1.17rem); }
.phero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.phero .note { margin-top: 14px; font-size: .9rem; color: var(--sky); }
.pv { position: absolute; top: 0; bottom: 0; right: 0; width: min(58%, 820px); z-index: 0; overflow: hidden; pointer-events: none; }
.pv img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 30%); filter: saturate(.8) contrast(1.05) brightness(.92); }
.pv.flip img { transform: scaleX(-1); }
.pv::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(11,21,48,.9) 9%, rgba(11,21,48,0) 36%), linear-gradient(270deg, var(--navy) 0%, rgba(11,21,48,0) 12%),
    linear-gradient(0deg, var(--navy) 0%, rgba(11,21,48,.5) 10%, rgba(11,21,48,0) 26%), linear-gradient(180deg, rgba(11,21,48,.6) 0%, rgba(11,21,48,0) 16%), rgba(11,21,48,.3); }
.scn { position: absolute; right: var(--gutter); bottom: clamp(28px, 4vw, 48px); width: min(330px, 34%); background: #fff; color: var(--charcoal); border-radius: 16px; padding: 16px 18px; box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.scn .k { display: flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.scn .k .ico { width: 20px; height: 20px; color: var(--red); }
.scn p { margin: 8px 0 0; font-size: .88rem; line-height: 1.5; }

/* strip of three proof points under the hero */
.strip { background: var(--navy-2); color: #D5DBEA; }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.strip li b { display: block; color: #fff; font-size: 1rem; }
.strip li span { display: block; font-size: .9rem; color: var(--sky); margin-top: 2px; line-height: 1.4; }

/* ---------- Steps ---------- */
.st3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.st { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.st .n { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.st h3 { font-size: 1.4rem; margin-top: 18px; }
.st p { margin-top: 10px; }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.split h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 12px; }
.split .lede { margin-top: 14px; font-size: 1.05rem; }
.pills { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { background: var(--mist); color: var(--navy); font-weight: 700; font-size: .9rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); }
.minis { display: grid; gap: 16px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); }
.mini .k { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal); }
.mini h4 { margin: 8px 0 0; color: var(--navy); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.mini p { margin: 8px 0 0; font-size: .95rem; }

/* ---------- Feature grid ---------- */
.f4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.f { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.f .ck { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.f .ck .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.f b { display: block; color: var(--navy); font-size: 1.08rem; }
.f span { display: block; margin-top: 4px; font-size: .96rem; }

/* ---------- Customer quotes ---------- */
.qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.q { margin: 0; background: rgba(251,251,252,.07); border: 1px solid rgba(251,251,252,.14); border-radius: 18px; padding: 28px; }
.q blockquote { margin: 0; color: #fff; font-size: 1.12rem; line-height: 1.55; font-weight: 600; }
.q figcaption { margin-top: 16px; color: var(--sky); font-size: .9rem; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .a { padding: 16px 22px 20px; }
.faq .a p { margin: 0 0 12px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a a { color: var(--navy); font-weight: 700; }

/* ---------- Closing call to action ---------- */
.band { position: relative; overflow: hidden; background: var(--navy); color: #fff; text-align: center; padding: clamp(60px, 8vw, 104px) 0;
  background-image: radial-gradient(800px 380px at 50% 0%, rgba(38,58,122,.6), transparent 70%); }
.band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 16em; margin: 14px auto 0; }
.band p { color: #D5DBEA; max-width: 34em; margin: 16px auto 0; font-size: 1.1rem; }
.band .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.band .eyebrow { color: var(--sky); }

/* ---------- Embedded blog (framed by the portal's Blog Posts page) ----------
   The portal iframes /blog and /blog/<slug>. An inline script at the top of
   <body> on those pages (only) adds .is-embedded to <html> before first paint
   when window.top !== window.self, so this never flashes the full chrome
   first. Only the portal hosts can frame us at all (see /blog's CSP
   frame-ancestors in _headers), so no pathname check is needed here. See
   docs/blog.md. */
html.is-embedded header.nav,
html.is-embedded footer,
html.is-embedded .band { display: none; }

/* ---------- Other trades ---------- */
.rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.rel a { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--navy); font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.rel a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rel .ico { width: 18px; height: 18px; stroke-width: 2.4; }

/* ---------- Trades directory ---------- */
.feat4 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tc { position: relative; display: block; text-decoration: none; color: #fff; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--navy); box-shadow: var(--shadow); isolation: isolate; }
.tc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.9); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,21,48,.05) 30%, rgba(11,21,48,.9) 100%); }
.tc:hover img { transform: scale(1.07); }
.tc .in { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.tc b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.tc span { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: .88rem; color: #fff; }
.tc .ico { width: 16px; height: 16px; stroke-width: 2.6; transition: transform .2s ease; }
.tc:hover .ico { transform: translateX(3px); }
.cat { margin-top: clamp(30px, 4vw, 48px); }
.cat h3 { font-size: 1.25rem; padding-bottom: 12px; border-bottom: 2px solid var(--navy); display: inline-block; margin-bottom: 18px; }
.tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 600; color: var(--navy); font-size: .95rem; line-height: 1.35; }
.tags li a { color: var(--navy); text-decoration: none; font-weight: 800; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tags li.hl { border-color: var(--navy); border-width: 2px; }
.tags li.hl a::after { content: "\2192"; }
.tags li:target, .tags li.hl:hover { background: var(--mist); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--shadow); }
.plan.pop { background: var(--navy); color: #D5DBEA; border-color: var(--navy); box-shadow: 0 24px 60px rgba(11,21,48,.3); }
.plan .tag { position: absolute; top: -14px; left: 32px; background: var(--red); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.plan .k { font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--charcoal); }
.plan.pop .k { color: var(--sky); }
.plan h3 { font-size: 1.6rem; margin-top: 8px; }
.plan.pop h3 { color: #fff; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.plan .price b { font-size: clamp(3rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; color: var(--navy); line-height: 1; }
.plan.pop .price b { color: #fff; }
.plan .price span { font-weight: 700; }
.plan .blurb { margin-top: 14px; }
.plan .inc { margin-top: 22px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal); }
.plan.pop .inc { color: var(--sky); }
.plan ul { list-style: none; margin: 14px 0 26px; padding: 0; display: grid; gap: 14px; }
.plan li { display: flex; gap: 12px; }
.plan li .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; margin-top: 2px; }
.plan.pop li .ck { background: #fff; color: var(--navy); }
.plan li .ck .ico { width: 13px; height: 13px; stroke-width: 3; }
.plan li b { display: block; color: var(--navy); font-size: 1rem; }
.plan.pop li b { color: #fff; }
.plan li span { display: block; font-size: .9rem; line-height: 1.45; }
.plan .btn { margin-top: auto; }
.terms { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; }
.terms li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.terms .ico { width: 18px; height: 18px; stroke-width: 3; color: var(--navy); }

@media (max-width: 1000px) {
  .feat4 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .feat4 .tc { grid-column: span 2; }
  .feat4 .tc:nth-child(4), .feat4 .tc:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 900px) {
  .pv { position: relative; width: 100%; height: 280px; }
  .pv::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(11,21,48,.55) 30%, rgba(11,21,48,0) 60%), linear-gradient(180deg, rgba(11,21,48,.4) 0%, rgba(11,21,48,0) 25%), rgba(11,21,48,.25); }
  .phero .wrap { min-height: 0; }
  .pv + .wrap { margin-top: -60px; padding-top: 0; }
  .scn { position: static; width: 100%; margin-top: 32px; }
  .st3, .split, .f4, .qs, .plans, .strip ul { grid-template-columns: 1fr; }
  .plans { gap: 34px; }
}
@media (max-width: 560px) {
  .feat4 { grid-template-columns: 1fr; }
  .feat4 .tc, .feat4 .tc:nth-child(4), .feat4 .tc:nth-child(5) { grid-column: auto; }
  .tc { aspect-ratio: 16 / 9; }
  .phero .ctas .btn, .band .ctas .btn { width: 100%; }
}

/* ---------- Customer success story (Kern Painting) ---------- */
.khero .wrap { min-height: 0; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.khero .txt { max-width: 760px; }
.kphotos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kphotos figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); box-shadow: var(--shadow); }
.kphotos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rev3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rev2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.rev { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.rev .tag { font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--charcoal); }
.rev .stars { color: #F5B400; letter-spacing: 3px; font-size: 1.25rem; line-height: 1; }
.rev blockquote { margin: 0; color: var(--navy); font-weight: 600; font-size: 1.12rem; line-height: 1.5; }
.rev.wide blockquote { font-weight: 500; font-size: 1rem; line-height: 1.6; }
.rev figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rev .av { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .04em; display: grid; place-items: center; flex: none; }
.rev figcaption b { display: block; color: var(--navy); font-size: .95rem; }
.rev figcaption small { display: block; font-size: .85rem; color: var(--charcoal); }
@media (max-width: 900px) { .rev3, .rev2 { grid-template-columns: 1fr; } .kphotos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Blog (listing and posts) ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 22px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11,21,48,.06), 0 16px 34px rgba(11,21,48,.14); }
.post-card-date { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal); }
.post-card h2 { font-size: 1.28rem; line-height: 1.25; letter-spacing: -0.01em; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }  /* whole card is the link */
.post-card h2 a:focus-visible { outline: none; }
.post-card:has(h2 a:focus-visible) { outline: 3px solid #7C93D6; outline-offset: 3px; }
.post-card p:not(.post-card-date) { font-size: .96rem; line-height: 1.55; }
.post-card-more { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 800; font-size: .9rem; color: var(--navy); }

.post-meta { color: var(--sky); font-size: .95rem; margin-top: 4px; }

.post-content { max-width: 44rem; color: var(--charcoal); font-size: 1.1rem; line-height: 1.78; }
.post-content > * + * { margin-top: 1.15em; }
.post-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 2.1em; line-height: 1.2; }
.post-content h3 { font-size: 1.2rem; margin-top: 1.8em; }
.post-content strong { color: var(--navy); }
.post-content a { color: var(--navy); font-weight: 700; }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li + li { margin-top: .45em; }
.post-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--navy); color: var(--navy); font-weight: 600; }
.post-content .table-wrap { overflow-x: auto; }
.post-content table { border-collapse: collapse; width: 100%; font-size: .96rem; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-content th { background: var(--mist); color: var(--navy); }
.back-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 44px; font-weight: 800; color: var(--navy); text-decoration: none; }
.back-link .ico { width: 18px; height: 18px; stroke-width: 2.4; transform: rotate(180deg); transition: transform .2s ease; }
.back-link:hover .ico { transform: rotate(180deg) translateX(4px); }
@media (max-width: 1000px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } .post-content { font-size: 1.04rem; } }
