/* Sunward Marketing: inner pages (services and industries). Loads after base.css and home.css. */

/* ---------- Page hero: a shorter chart, a headline, the facts at a glance ---------- */
.phero {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: -1px -1px;
  border-bottom: 3px solid var(--ink);
  padding: clamp(20px, 3vw, 36px) 0 clamp(44px, 6vw, 80px);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 0 0 12px; list-style: none; border-bottom: 1px solid var(--ink); }
.crumbs li { font: 650 13px/1.2 var(--f-display); font-variation-settings: "wdth" 66; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--sun); font-weight: 800; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { color: var(--cobalt); }
.phero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-top: clamp(28px, 4vw, 56px); }
.phero h1 { font-size: clamp(2.5rem, 5.4vw, 5.2rem); line-height: 0.94; font-variation-settings: "wdth" 116; letter-spacing: -0.04em; }
.phero h1 .hl { color: var(--cobalt); }
.phero .lede { margin: clamp(20px, 2.6vw, 30px) 0 0; }
.phero .hero-ctas { margin-top: 28px; }

/* The facts box: rules, not a card */
.glance { border-top: 3px solid var(--ink); }
.glance > div { padding: 16px 0 18px; border-bottom: 1px solid var(--hair); }
.glance .label { display: block; margin-bottom: 6px; }
.glance b { display: block; font: 800 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--f-display); font-variation-settings: "wdth" 112; letter-spacing: -0.03em; color: var(--ink); font-feature-settings: "tnum"; }
.glance p { margin: 6px 0 0; font-size: 16.5px; line-height: 1.45; }
.glance ul { margin: 4px 0 0; padding: 0; list-style: none; }
.glance li { padding: 7px 0; border-top: 1px solid var(--hair); font: 650 16px/1.35 var(--f-display); color: var(--ink); }
.glance li:first-child { border-top: 0; }
.glance a { color: var(--ink); }
@media (max-width: 900px) { .phero-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .phero .hero-ctas { flex-direction: column; align-items: stretch; }
  .phero .hero-ctas .btn { justify-content: space-between; }
  .phero .hero-ctas .textlink { align-self: flex-start; }
}

/* ---------- What you get: a numbered, ruled list in two columns ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 72px); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 4px 14px; padding: 22px 0 20px; border-top: 1px solid var(--hair); counter-increment: step; }
.steps li:nth-child(-n+2) { border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font: 800 2.4rem/0.9 var(--f-display); font-variation-settings: "wdth" 62; color: var(--cobalt); }
.steps h3 { margin: 0; }
.steps p { margin: 4px 0 0; font-size: 17.5px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li:nth-child(2) { border-top: 1px solid var(--hair); } }

/* ---------- Fit: one row per kind of business, each pointing at its industry page ---------- */
.fit { border-top: 1px solid var(--ink); }
.fit > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr) minmax(0, 0.85fr); gap: 10px clamp(20px, 3vw, 44px); align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--hair); scroll-margin-top: 96px; }
.fit h3 { margin: 0; }
.fit p { margin: 0; font-size: 17.5px; }
.fit .textlink { justify-self: end; text-align: right; }
@media (max-width: 820px) { .fit > div { grid-template-columns: 1fr; } .fit .textlink { justify-self: start; text-align: left; } }

/* ---------- Trades: one short section per trade, each with its own anchor ---------- */
.trades { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 72px); border-top: 3px solid var(--ink); }
.trade { padding: 24px 0 22px; border-bottom: 1px solid var(--hair); scroll-margin-top: 96px; }
.trade .label { display: block; color: var(--cobalt); margin-bottom: 8px; }
.trade h3 { margin: 0 0 8px; }
.trade p { margin: 0; font-size: 17.5px; }
.trade:target { background: linear-gradient(var(--paper-2), var(--paper-2)); box-shadow: -12px 0 0 var(--paper-2), 12px 0 0 var(--paper-2); }
@media (max-width: 760px) { .trades { grid-template-columns: 1fr; } }

/* ---------- A plain note, set off by a sun rule ---------- */
.note { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 12px clamp(24px, 4vw, 56px); padding: 22px 0 4px; border-top: 3px solid var(--sun); }
.note p { margin: 0; max-width: 46em; }
@media (max-width: 760px) { .note { grid-template-columns: 1fr; } }

/* ---------- Related pages ---------- */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.related a { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 22px 0; text-decoration: none; color: var(--ink); }
.related a + a { padding-left: 24px; border-left: 1px solid var(--hair); }
.related b { display: flex; justify-content: space-between; gap: 12px; font: 800 clamp(1.25rem, 1.9vw, 1.6rem)/1.1 var(--f-display); font-variation-settings: "wdth" 108; letter-spacing: -0.02em; }
.related span { font-size: 16.5px; color: var(--ink-2); }
.related a:hover b { color: var(--cobalt); }
@media (max-width: 760px) {
  .related { grid-template-columns: 1fr; }
  .related a, .related a + a { padding: 18px 0; border-left: 0; }
  .related a + a { border-top: 1px solid var(--hair); }
}

/* Inner pages run their sections a little tighter than the home page */
.page .section { padding-block: clamp(60px, 8vw, 112px); }

/* ---------- Contact: the calendar sits right on the page ---------- */
.cal-inline { height: 720px; border-top: 3px solid var(--ink); background: var(--paper); }
.cal-inline .calendly-inline-widget, .cal-inline iframe { width: 100%; height: 100%; }
.cal-inline .cal-fallback { padding: 24px 0; }
@media (max-width: 760px) { .cal-inline { height: 1060px; } }

/* ---------- Legal pages: one comfortable reading column ---------- */
.legal { max-width: 46em; }
.legal h2 { margin: 48px 0 14px; padding-top: 16px; border-top: 1px solid var(--ink); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; font-variation-settings: "wdth" 108; letter-spacing: -0.02em; scroll-margin-top: 96px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 26px 0 8px; font-size: 1.2rem; font-variation-settings: "wdth" 104; }
.legal p, .legal li { font-size: 18px; line-height: 1.6; }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--sun); }
.legal a { color: var(--cobalt); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 18px; }
.toc { margin: 0 0 40px; padding: 18px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--hair); columns: 2 16em; column-gap: 40px; }
.toc a { display: block; padding: 5px 0; font: 650 16px/1.35 var(--f-display); color: var(--ink); text-decoration: none; break-inside: avoid; }
.toc a:hover { color: var(--cobalt); }

/* ---------- Pricing page: four plans side by side, two by two on tablets, stacked on phones ---------- */
.plans.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans.plans-4 .fig { font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
@media (max-width: 1100px) {
  .plans.plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans.plans-4 .plan:nth-child(3) { padding-left: 0; border-left: 0; }
  .plans.plans-4 .plan:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 900px) { .plans.plans-4 { grid-template-columns: 1fr; } }
