/* ==========================================================================
   umerqureshi.com — SITEWIDE v2.4 design layer (shipped in v2.5.0, 2026-11-19)
   Loaded by EVERY page after style.css (and before home.css on the homepage).
   Extends the v2.4.0 homepage treatment to the internal pages: the system serif
   display face, numbered pillar hubs, card grids and quieter sub-page heroes.
   Tokens come from style.css, so light (skin / teal / ochre) and dark
   (navy / gold / blue) inherit automatically. No web fonts, no external assets.
   The display-type rules below were MOVED here from home.css; home.css keeps
   only the homepage sizes and layout.
   ========================================================================== */

:root {
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, "Times New Roman", serif;
}

/* ---------- Display type, sitewide ---------- */
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.08;
}
.hl { font-style: italic; font-weight: 700; }
.pullquote { font-family: var(--font-display); font-weight: 700; }
/* NOTE: the shared footer is deliberately NOT restyled, so the homepage renders exactly as v2.4.0 did. */

/* ---------- Sub-page hero (about, services, contact, hubs, blog index) ---------- */
.hero--sub {
  padding-top: calc(var(--header-h) + clamp(2.6rem, 5.5vw, 5rem));
  padding-bottom: clamp(2.4rem, 4.5vw, 3.8rem);
}
.hero--sub::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(var(--rgb-a), .16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 72% 35%, #000 10%, transparent 72%);
  mask-image: radial-gradient(70% 70% at 72% 35%, #000 10%, transparent 72%);
  opacity: .9;
}
:root[data-theme="dark"] .hero--sub::before { opacity: .55; }
.hero--sub h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); max-width: 20ch; margin-bottom: .45em; }
.hero--sub .lead { font-size: clamp(1.08rem, 1.45vw, 1.22rem); max-width: 64ch; }
.hero--sub .eyebrow { margin-bottom: 1.3rem; }
.hero--sub .crumbs { margin: 0 0 1.1rem; position: relative; z-index: 1; }
.hero--sub .hero-ctas { margin-top: 1.6rem; }

/* ---------- Generated page shell (.post: services, pricing, cases, posts, apps) ---------- */
/* Pre-existing defect fixed in v2.5.0: article.post had no offset for the fixed header, so the
   breadcrumb row (26px from the top) sat UNDER the 77px glass header on all 52 .post pages. */
article.post > .container-narrow { padding-top: calc(var(--header-h) + .4rem); }
.post-head { padding: 1.6rem 0 1.8rem; }
.post-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; }
.post-head .eyebrow { margin-bottom: .9rem; }
.post-body h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); line-height: 1.2; letter-spacing: -.018em; }
.post-body > h2:first-child, .hub-notes > h2:first-child { margin-top: 0; }
.faq-block h3 { border-top: 1px solid var(--line-soft); padding-top: 1.05rem; margin-top: 1.3rem; }
.faq-block h2 + h3 { border-top: 0; padding-top: 0; }
.post-cta h2, .related h2 { letter-spacing: -.015em; }

/* ---------- Proof line (about) ---------- */
.proofline { padding-block: clamp(1.8rem, 3.2vw, 2.8rem); border-block: 1px solid var(--line-soft); background: var(--bg-2); }
.proofline-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.4rem); }
.proofline .stat { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; }
.proofline .stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.3vw, 2.9rem); }
.proofline .stat .label { font-size: .92rem; }

/* ---------- Pillar list (about) ---------- */
.pillar-list { display: grid; gap: .8rem; margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.pillar-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 1.4rem; align-items: center;
  padding: 1.15rem 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: var(--card-solid);
  color: inherit; text-decoration: none; min-width: 0;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s ease;
}
.pillar-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--indigo); }
.pillar-item > div { min-width: 0; }
.pi-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; color: var(--mint); letter-spacing: -.03em; min-width: 2.2ch; }
:root[data-theme="light"] .pi-num { color: #C27310; }
.pillar-item h3 { margin: 0 0 .25rem; font-size: 1.18rem; line-height: 1.25; }
:root[data-theme="light"] .pillar-item h3 { color: #0F766E; }
.pillar-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.pi-go { color: var(--blue); font-weight: 700; font-size: 1.3rem; }

/* ---------- Principles (about throughline) ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem 1.2rem; margin: 1.6rem 0 .4rem; }
.principles > div { position: relative; border-top: 2px solid var(--line); padding-top: .9rem; display: grid; gap: .3rem; min-width: 0; }
.principles > div::before { content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 2px; background: var(--grad); }
.principles b { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.2; }
:root[data-theme="light"] .principles b { color: #0F766E; }
.principles span { color: var(--ink-soft); font-size: .94rem; line-height: 1.5; }

/* ---------- Pillar hubs (services) ---------- */
.hub-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem clamp(1.2rem, 2.6vw, 2.4rem); align-items: start; max-width: 880px; }
.hub-head > div { min-width: 0; }
.hub-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: .9; color: var(--mint); letter-spacing: -.03em; }
:root[data-theme="light"] .hub-num { color: #C27310; }
.hub-head h2 { margin: 0 0 .35rem; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.hub-promise { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink); margin: 0 0 .7rem; line-height: 1.4; }
.hub-intro { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.hub-with { margin: .7rem 0 0; color: var(--ink-dim); font-size: .94rem; }

/* ---------- Card grids (hubs) ---------- */
.v-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.3rem); margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.v-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v-card {
  display: flex; flex-direction: column; gap: .5rem; min-width: 0;
  border-radius: 18px; border: 1px solid var(--line); background: var(--card-bg);
  padding: 1.3rem 1.3rem 1.2rem; color: inherit; text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s ease;
}
.v-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--ease);
}
a.v-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
a.v-card:hover::before { transform: scaleX(1); }
.v-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.v-card h2 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
:root[data-theme="light"] .v-card h3, :root[data-theme="light"] .v-card h2 { color: #0F766E; }
.v-card p { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.55; }
.v-k { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-dim); }
.v-k .dot { color: var(--mint); }
.v-fig { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); line-height: 1.45; }
.v-more { margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .9rem; color: var(--blue); }
a.v-card:hover .v-more { text-decoration: underline; text-underline-offset: 3px; }
.v-ext { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-dim); }

/* ---------- Prose blocks inside hub pages ---------- */
.hub-notes { font-size: 1.045rem; line-height: 1.75; color: var(--ink); margin-top: clamp(2.4rem, 4vw, 3.4rem); }
.hub-notes h2 { margin: 2.4rem 0 .8rem; font-size: clamp(1.45rem, 2.5vw, 1.9rem); line-height: 1.2; letter-spacing: -.018em; }
.hub-notes h3 { margin: 1.8rem 0 .55rem; font-size: clamp(1.08rem, 1.7vw, 1.22rem); }
.hub-notes p { margin: 0 0 1.15rem; color: var(--ink-soft); }
.hub-notes strong { color: var(--ink); font-weight: 700; }
.hub-notes ul, .hub-notes ol { margin: 0 0 1.3rem; padding-left: 1.35rem; color: var(--ink-soft); }
.hub-notes li { margin-bottom: .5rem; }
.hub-notes li::marker { color: var(--mint); }
.hub-notes a { color: var(--mint); text-underline-offset: 3px; text-decoration: underline; }
.hub-notes a:hover { text-decoration-thickness: 2px; }
.section--hub-notes { padding-top: 0; }

/* ---------- Contact ---------- */
.contact-form-card h2 { font-size: clamp(1.55rem, 2.6vw, 2rem) !important; }
.side-card h3 { font-size: 1.14rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .v-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .v-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proofline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .principles { grid-template-columns: 1fr; }
  .hub-head { grid-template-columns: 1fr; gap: .6rem; }
}
@media (max-width: 640px) {
  .v-grid, .v-grid--2, .v-grid--4 { grid-template-columns: 1fr; }
  .hero--sub h1 { font-size: clamp(2.1rem, 9.5vw, 2.7rem); max-width: none; }
  .pillar-item { grid-template-columns: auto minmax(0, 1fr); }
  .pi-go { display: none; }
  .post-head h1 { font-size: clamp(1.9rem, 8.6vw, 2.4rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .v-card, .v-card::before, .pillar-item { transition: none; }
  a.v-card:hover, .pillar-item:hover { transform: none; }
}
