/* Components used by the inner pages: heroes, reading layouts, cards and calls to action. */

/* Inner page hero sits on the same navy base as the homepage hero. */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: white; padding: clamp(148px, 17vw, 208px) 0 clamp(64px, 7vw, 104px); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(58% 68% at 82% 18%, rgba(41, 105, 255, 0.32), transparent 70%), linear-gradient(180deg, rgba(7, 17, 31, 0.2), rgba(7, 17, 31, 0.92)); }
.page-hero::after { content: ''; position: absolute; inset: 0; opacity: 0.16; background-image: linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px); background-size: 88px 88px; mask-image: linear-gradient(90deg, transparent 35%, #000 100%); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 17ch; margin-bottom: 24px; }
.page-hero .lead { max-width: 60ch; color: #d8e2ee; font-weight: 500; }

/* Breadcrumbs give every inner page a visible trail back into the site. */
.breadcrumbs { margin: 0 0 30px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #a6b7c9; }
.breadcrumbs li { display: flex; gap: 10px; }
.breadcrumbs li + li::before { content: '/'; color: #5b6f88; }
.breadcrumbs a:hover { color: white; }
.breadcrumbs [aria-current='page'] { color: #d8e2ee; }

/* At-a-glance facts answer the first questions without a paragraph of prose. */
.page-facts { display: flex; flex-wrap: wrap; gap: 18px 46px; margin: 44px 0 0; padding: 26px 0 0; border-top: 1px solid #26354a; }
.page-facts div { min-width: 150px; }
.page-facts dt { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-light); }
.page-facts dd { margin: 0; font-size: 15px; color: #d8e2ee; }

/* Reading layout: a sticky outline beside the article itself. */
.page-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: 36px; padding-top: 8px; }
.toc h2 { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.4; }
.toc li a:hover { color: var(--ink); border-left-color: var(--blue); }
.toc .toc-secondary { padding-left: 30px; font-size: 13px; }

.prose { max-width: 68ch; }
.prose > h2 { margin: 72px 0 20px; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.18; letter-spacing: -0.05em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 42px 0 12px; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.3; letter-spacing: -0.035em; }
.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--blue); }
.prose a { color: var(--blue-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: #123fae; }
.prose strong { font-weight: 650; }
.prose blockquote { margin: 32px 0; padding: 24px 28px; border-left: 3px solid var(--blue); background: var(--paper-deep); font-size: 19px; line-height: 1.55; font-weight: 500; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 36px 0; }
.prose figure img { width: 100%; border: 1px solid var(--line); background: var(--navy); }
.prose figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* Definition grids turn a paragraph of facts into something scannable. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; margin: 34px 0; background: var(--line); border: 1px solid var(--line); }
.facts > div { background: var(--white); padding: 22px 24px; }
.facts dt { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-dark); }
.facts dd { margin: 0; color: var(--muted); font-size: 15px; }

/* Cards group services, notes and other repeated content. */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }
.card { display: flex; flex-direction: column; padding: 30px 30px 32px; background: var(--white); border: 1px solid var(--line); }
.card h3 { margin-bottom: 10px; font-size: 24px; letter-spacing: -0.04em; line-height: 1.25; }
.card h3 a:hover { color: var(--blue-dark); }
.card p { color: var(--muted); font-size: 15px; }
.card ul { margin: 0 0 22px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.card li { margin-bottom: 6px; }
.card li::marker { color: var(--blue); }
.card-media { margin: -30px -30px 26px; background: var(--navy); border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 190px; object-fit: cover; }
.card-more { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 650; color: var(--blue-dark); }
.card-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* A link that behaves like a quiet button in running text. */
.link-more { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 650; color: var(--blue-dark); }
.link-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-more::after { content: ''; }

/* Two-column split for image plus text. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split img { width: 100%; border: 1px solid var(--line); background: var(--navy); }
.split p { color: var(--muted); }
.split p:last-child { margin-bottom: 0; }

/* Included-work lists use a small marker instead of numbered steps. */
.include-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin: 30px 0 8px; }
.include-grid h3 { font-size: 17px; letter-spacing: -0.02em; }
.include-grid ul { margin: 0; padding: 0; list-style: none; }
.include-grid li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); font-size: 15px; }
.include-grid li::before { content: ''; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; background: var(--blue); }

/* Good fit and not-a-fit sit side by side so the boundary is obvious. */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 30px 0; }
.fit-grid section { padding: 28px 30px; border: 1px solid var(--line); background: var(--white); }
.fit-grid section:last-child { background: var(--paper-deep); border-color: #b9c6d6; }
.fit-grid h3 { font-size: 19px; letter-spacing: -0.03em; }
.fit-grid ul { margin: 0; padding-left: 20px; }
.fit-grid li { margin-bottom: 9px; color: var(--muted); font-size: 15px; }
.fit-grid li::marker { color: var(--blue); }

/* The full FAQ keeps answers visible so they can be read and quoted in one pass. */
.faq-static { border-top: 1px solid var(--line); }
.faq-static article { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.faq-static h3 { margin: 0 0 10px; font-size: clamp(19px, 1.8vw, 23px); letter-spacing: -0.035em; line-height: 1.3; }
.faq-static p { margin: 0; max-width: 68ch; color: var(--muted); font-size: 16px; }
.faq-static p + p { margin-top: 12px; }
.faq-group { margin: 56px 0 0; }
.faq-group h2 { margin-bottom: 18px; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.045em; }

/* The closing call to action appears once per page. */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: white; padding: clamp(56px, 7vw, 92px) 0; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(46% 90% at 88% 30%, rgba(41, 105, 255, 0.34), transparent 70%); }
.cta-band .shell { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 36px; }
.cta-band h2 { max-width: 16ch; margin: 0; font-size: clamp(30px, 3.6vw, 52px); }
.cta-band p { max-width: 46ch; margin: 16px 0 0; color: #c4d0de; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button-secondary { background: transparent; color: white; border: 1px solid rgba(255, 255, 255, 0.5); }
.button-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.button-onlight { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button-onlight:hover { background: var(--paper-deep); }

/* Page-level contact panel keeps the email draft helper available everywhere. */
.contact-panel { display: grid; grid-template-columns: 1fr minmax(340px, 0.8fr); gap: clamp(40px, 6vw, 84px); align-items: start; }
.contact-panel h2 { margin-bottom: 18px; }
.contact-panel p { color: var(--muted); max-width: 52ch; }
.contact-panel .email-link { font-size: clamp(17px, 1.6vw, 22px); }

/* Notes list on the index page. */
.note-list { border-top: 1px solid var(--line); }
.note-list article { padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.note-list h3 { margin-bottom: 8px; font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -0.045em; }
.note-list h3 a:hover { color: var(--blue-dark); }
.note-list p { max-width: 68ch; margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.note-meta { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-dark); }

/* Table for comparing what a project involves. */
.compare { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 15px; }
.compare caption { text-align: left; color: var(--muted); font-size: 14px; padding-bottom: 12px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--navy); color: white; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.compare tbody th { font-weight: 650; width: 30%; }
.compare tbody tr:nth-child(even) { background: var(--white); }

@media (max-width: 1000px) {
  .page-layout { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; padding: 24px 0 0; border-top: 1px solid var(--line); }
  .split, .contact-panel, .fit-grid { grid-template-columns: 1fr; gap: 34px; }
  .card-media img { height: 210px; }
}

@media (max-width: 600px) {
  .page-hero { padding-top: 140px; }
  .page-facts { gap: 16px 28px; }
  .page-facts div { min-width: 130px; }
  .facts { grid-template-columns: 1fr; }
  .cta-band .shell { flex-direction: column; align-items: flex-start; }
  .compare thead { display: none; }
  .compare tbody th, .compare tbody td { display: block; width: auto; padding: 12px 0; border: 0; }
  .compare tbody tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
}
