/* blocks.css - layout for pagegen blocks. Load after the site's own CSS.
   Colours and fonts come from the site; override the variables below to match. ASCII only. */
:root {
  --pg-max: 1180px;
  --pg-gap: 1.5rem;
  --pg-radius: 10px;
  --pg-border: #d9dde3;
  --pg-surface: #f5f7f9;
  --pg-accent: #1f5f8b;
  --pg-accent-ink: #fff;
}

main > section,
main > nav.breadcrumb,
main > .listing-header,
.post { max-width: var(--pg-max); margin-inline: auto; padding: 2.5rem 1.25rem; }
main > nav.breadcrumb { padding-block: 1rem 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }

.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: var(--pg-radius); background: var(--pg-accent);
  color: var(--pg-accent-ink); font-weight: 700; text-decoration: none; border: 2px solid var(--pg-accent); }
.btn--ghost { background: transparent; color: var(--pg-accent); }

/* hero: text + form side by side on desktop, form stays above the fold */
.hero { display: grid; gap: var(--pg-gap); align-items: start; }
.hero .lead { font-size: 1.15rem; }
.trust-signals { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; list-style: none; font-weight: 600; }
.trust-signals li::before { content: "\2713"; margin-right: .4rem; color: var(--pg-accent); }
.hero__media img { width: 100%; height: auto; border-radius: var(--pg-radius); }
.hero__form { background: var(--pg-surface); border: 1px solid var(--pg-border); border-radius: var(--pg-radius); padding: 1.25rem; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.4fr 1fr; }
  .hero__media { grid-column: 1; }
  .hero__form { grid-column: 2; grid-row: 1 / span 2; }
}

/* scope grid: one card per sub-service, 3-4 columns desktop, stacked mobile */
.service-grid__cards { display: grid; gap: var(--pg-gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .service-grid__cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid__cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.service-card { border: 1px solid var(--pg-border); border-radius: var(--pg-radius); padding: 1.25rem; background: #fff; }
.service-card h3 { margin-top: 0; }

.cta { text-align: center; background: var(--pg-surface); border-radius: var(--pg-radius); }

/* projects: image directly beside its text */
.project-item { display: grid; gap: var(--pg-gap); margin: 0 0 2rem; align-items: center; }
.project-item img { width: 100%; height: auto; border-radius: var(--pg-radius); }
@media (min-width: 800px) {
  .project-item { grid-template-columns: 1fr 1fr; }
  .project-item:nth-of-type(even) img { order: 2; }
}
.project-facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; }
.project-facts dt { font-weight: 700; }
.project-facts dd { margin: 0; }

/* tables (pricing + article tables) */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
th, td { border: 1px solid var(--pg-border); padding: .7rem; text-align: left; vertical-align: top; }
thead th { background: var(--pg-surface); }
td ul { margin: 0; padding-left: 1.1rem; }
.table-note { font-size: .9rem; opacity: .8; }

/* FAQ: no-script accordion */
.faq details { border-bottom: 1px solid var(--pg-border); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq__answer { padding-top: .5rem; }

.areas__list { columns: 2 12rem; padding-left: 1.1rem; }

/* blog (informational) */
.post { max-width: 760px; }
.post > section { padding: 0; margin: 2rem 0; }
.dek { font-size: 1.2rem; }
.byline { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; opacity: .85; }
.post-header__media img, .post figure img { width: 100%; height: auto; border-radius: var(--pg-radius); }
.toc { background: var(--pg-surface); border-radius: var(--pg-radius); padding: 1rem 1.25rem; }
.toc__title { font-weight: 700; margin: 0 0 .5rem; }
.note { border-left: 4px solid var(--pg-accent); background: var(--pg-surface); padding: .75rem 1rem; }
.author-box { border-top: 1px solid var(--pg-border); padding-top: 1.5rem; margin-top: 2rem; }
.author-box__photo { float: left; margin: 0 1rem .5rem 0; border-radius: 50%; width: 72px; height: 72px; object-fit: cover; }
.post-cta { background: var(--pg-surface); border-radius: var(--pg-radius); padding: 1.5rem !important; }

/* blog index */
.post-list__cards { display: grid; gap: var(--pg-gap); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.post-card { border: 1px solid var(--pg-border); border-radius: var(--pg-radius); padding: 1rem; }
.post-card img { width: 100%; height: auto; border-radius: calc(var(--pg-radius) - 4px); }

/* ---- House Plan Design & Drafting theme for blog pages (body.page-blog). Added 2026-11-21. ---- */
:root { --pg-accent: #084b93; --pg-accent-ink: #fff; --pg-surface: #f3f3f3; --pg-border: #dcdcdc; --pg-max: 1180px; }
.page-blog .site-header { background: #021935; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.page-blog main { padding-top: var(--header-h, 72px); }
.page-blog .breadcrumb { padding-top: 1.25rem; font-size: 14px; }
.page-blog .breadcrumb a { color: var(--blue, #084b93); }
.page-blog .post { padding-top: .5rem; padding-bottom: 3rem; }
.page-blog .post h1 { font-size: clamp(32px, 6vw, 50px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: #000; margin: .5rem 0 1rem; }
.page-blog .post .dek { font-size: 20px; line-height: 1.5; color: #333; margin: 0 0 1rem; }
.page-blog .post h2 { font-size: clamp(26px, 4.6vw, 34px); font-weight: 600; line-height: 1.2; color: #102a57; margin: 0 0 .9rem; }
.page-blog .post h3 { font-size: 21px; font-weight: 600; line-height: 1.3; color: #000; margin: 1.4rem 0 .4rem; }
.page-blog .post p, .page-blog .post li { font-size: 18px; line-height: 1.7; }
.page-blog .post p + p, .page-blog .post p + ul, .page-blog .post p + ol, .page-blog .post ul + p, .page-blog .post ol + p, .page-blog .post table + p { margin-top: .9rem; }
.page-blog .post ul, .page-blog .post ol { padding-left: 1.4rem; margin: .6rem 0; }
.page-blog .post ul { list-style: disc; }
.page-blog .post ol { list-style: decimal; }
.page-blog .post li + li { margin-top: .45rem; }
.page-blog .post li::marker { color: var(--blue, #084b93); }
.page-blog .post strong { color: #000; }
.page-blog .post a { color: var(--blue, #084b93); text-underline-offset: 2px; }
.page-blog .post > section { margin: 2.6rem 0; }
.page-blog .byline { font-size: 15px; opacity: 1; color: #444; margin-bottom: 1.2rem; }
.page-blog .toc { margin: 1.2rem 0 2rem; }
.page-blog .toc ol { margin: .4rem 0 0; }
.page-blog .toc li { font-size: 17px; }
.page-blog .note { border-left-color: var(--blue, #084b93); border-radius: 0 8px 8px 0; margin: 1.2rem 0; }
.page-blog .note p { margin: 0; }
.page-blog .post table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 16px; }
.page-blog .post caption { text-align: left; font-weight: 600; padding-bottom: .5rem; color: #102a57; }
.page-blog .post th, .page-blog .post td { border: 1px solid var(--pg-border); padding: .65rem .8rem; text-align: left; vertical-align: top; }
.page-blog .post thead th { background: #102a57; color: #fff; border-color: #102a57; }
.page-blog .post tbody th { background: #f3f3f3; }
.page-blog .post-cta { background: #102a57; color: #fff; border-radius: 12px; }
.page-blog .post-cta h2, .page-blog .post-cta p { color: #fff; }
.page-blog .post-cta .btn { background: #fff; color: #102a57; border-color: #fff; }
.page-blog .author-box { background: var(--pg-surface); border-radius: 12px; padding: 1.25rem 1.4rem; }
.page-blog .faq summary { font-size: 18px; }
@media (max-width: 640px) { .page-blog .post table { display: block; overflow-x: auto; } }
