/* CivilBrothers — Option B light inner pages (generic, contact, services, blog) */
:root { --gut: max(80px, calc((100% - 1280px) / 2)); }

.cta-title, .cta-sub { margin: 0; }

/* ---------- PAGE HERO BAND ---------- */
.page-hero { position: relative; background: #F4F6F9; overflow: hidden; border-bottom: 1px solid #E7EAF0; }
.page-hero-hatch { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(46,98,217,0.035) 0px, rgba(46,98,217,0.035) 2px, transparent 2px, transparent 26px); pointer-events: none; }
.page-hero-inner { position: relative; padding: 72px var(--gut) 64px; display: flex; flex-direction: column; gap: 18px; }
.page-title { font-weight: 700; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.12; color: #10151F; margin: 0; max-width: 900px; }
.page-title .accent { color: #2E62D9; }
.page-sub { font-size: 17.5px; line-height: 1.65; color: #4A5261; max-width: 620px; margin: 0; }
.crumbs { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 12px; letter-spacing: 1.5px; color: #9AA3B2; text-transform: uppercase; }
.crumbs a { color: #6A7382; }
.crumbs a:hover { color: #2E62D9; }
.crumbs .sep { color: #2E62D9; }

/* ---------- GENERIC CONTENT / PROSE ---------- */
.content-wrap { padding: 80px var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.content-wrap.single-col { grid-template-columns: minmax(0, 760px); justify-content: center; }
.prose { display: flex; flex-direction: column; gap: 20px; }
.prose h2 { font-weight: 700; font-size: 27px; color: #10151F; margin: 18px 0 0; }
.prose h3 { font-weight: 700; font-size: 20px; color: #10151F; margin: 10px 0 0; }
.prose p { font-size: 16.5px; line-height: 1.75; color: #4A5261; margin: 0; }
.prose a { color: #2E62D9; font-weight: 600; }
.prose ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.6; color: #4A5261; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; background: #2E62D9; }
.prose blockquote { margin: 8px 0; padding: 22px 26px; border-left: 3px solid #2E62D9; background: #F4F6F9; font-size: 18px; line-height: 1.6; color: #10151F; font-style: italic; }
.prose-img { height: 320px; background: linear-gradient(155deg, #EDF0F5 0%, #DDE3EC 100%); border: 1px solid #D4DAE4; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.prose-img .page-hero-hatch { background: repeating-linear-gradient(45deg, rgba(46,98,217,0.045) 0px, rgba(46,98,217,0.045) 2px, transparent 2px, transparent 22px); }
.prose-img .placeholder-label { position: relative; }

/* ---------- SIDEBAR ---------- */
.side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 108px; }
.prose-photo { margin: 6px 0; background: #ffffff; border: 1px solid #E7EAF0; border-bottom: 3px solid #2E62D9; overflow: hidden; cursor: zoom-in; }
.prose-photo img { width: 100%; aspect-ratio: 16 / 9; max-height: 520px; object-fit: cover; display: block; transition: transform 0.35s ease; }
.prose-photo:hover img { transform: scale(1.03); }
.prose-photo figcaption { padding: 11px 15px; font-size: 13.5px; line-height: 1.5; color: #6A7382; }
@media (max-width: 640px) { .prose-photo img { aspect-ratio: 4 / 3; } }
.side-card { background: #ffffff; border: 1px solid #E7EAF0; border-top: 3px solid #2E62D9; padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.side-card-title { font-weight: 700; font-size: 16px; letter-spacing: 0.3px; color: #10151F; margin: 0; }
.side-stat { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid #2E62D9; padding-left: 16px; }
.side-stat .num { font-weight: 700; font-size: 30px; color: #2E62D9; line-height: 1.1; }
.side-stat .lbl { font-weight: 500; font-size: 12.5px; letter-spacing: 0.5px; color: #6A7382; }
.side-card.blue { background: #2E62D9; border: none; border-top: 3px solid #10151F; }
.side-card.blue .side-card-title { color: #ffffff; }
.side-card.blue p { color: rgba(255,255,255,0.92); font-size: 15px; line-height: 1.6; margin: 0; }
.side-card.blue .cta-btn { height: 50px; font-size: 15px; align-self: flex-start; padding: 0 26px; display: inline-flex; align-items: center; background: #ffffff; color: #10151F; }
.side-card.blue .cta-btn:hover { background: #EAEFF8; color: #10151F; }

/* ---------- CONTACT ---------- */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-note { font-size: 13.5px; color: #9AA3B2; font-style: italic; margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 12.5px; letter-spacing: 1.5px; color: #6A7382; text-transform: uppercase; }
.field input, .field select, .field textarea { font-family: 'Barlow', system-ui, sans-serif; font-size: 16px; color: #10151F; background: #ffffff; border: 1px solid #D4DAE4; padding: 13px 14px; border-radius: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #2E62D9; box-shadow: 0 0 0 3px rgba(46,98,217,0.15); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6A7382 50%), linear-gradient(135deg, #6A7382 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; }
.contact-detail svg { flex-shrink: 0; margin-top: 2px; }
.contact-detail .d-body { display: flex; flex-direction: column; gap: 2px; }
.contact-detail .d-key { font-weight: 600; font-size: 12px; letter-spacing: 1.5px; color: #9AA3B2; text-transform: uppercase; }
.contact-detail .d-val { font-size: 16.5px; color: #10151F; font-weight: 600; }
.contact-detail .d-val a { color: #10151F; }
.contact-detail .d-val a:hover { color: #2E62D9; }
.map-ph { height: 260px; position: relative; background: linear-gradient(155deg, #EDF0F5 0%, #DDE3EC 100%); border: 1px solid #D4DAE4; display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* ---------- HOW WE WORK STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { background: #ffffff; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; border: 1px solid #E7EAF0; border-top: 3px solid #2E62D9; }
.step-num { font-weight: 700; font-size: 34px; color: #2E62D9; line-height: 1; }
.step-title { font-weight: 700; font-size: 18px; color: #10151F; margin: 0; }
.step p { font-size: 15px; line-height: 1.6; color: #4A5261; margin: 0; }

/* ---------- BLOG ---------- */
.blog-wrap { padding: 72px var(--gut) 88px; display: flex; flex-direction: column; gap: 48px; }
.featured-post { display: grid; grid-template-columns: 1.25fr 1fr; background: #ffffff; border: 1px solid #E7EAF0; text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.featured-post:hover { border-color: #2E62D9; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(16,21,31,0.08); }
.post-photo { position: relative; background: linear-gradient(155deg, #EDF0F5 0%, #DDE3EC 100%); display: flex; align-items: center; justify-content: center; min-height: 300px; overflow: hidden; }
.featured-body { padding: 40px 38px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.post-tag { font-weight: 600; font-size: 12px; letter-spacing: 1.5px; color: #2E62D9; text-transform: uppercase; }
.featured-title { font-weight: 700; font-size: 28px; line-height: 1.22; color: #10151F; margin: 0; }
.post-excerpt { font-size: 15.5px; line-height: 1.65; color: #4A5261; margin: 0; }
.post-meta { font-weight: 500; font-size: 13px; letter-spacing: 0.5px; color: #9AA3B2; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: #ffffff; border: 1px solid #E7EAF0; text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.post-card:hover { border-color: #2E62D9; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(16,21,31,0.08); }
.post-card .post-photo { min-height: 190px; }
.post-card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.post-card-title { font-weight: 700; font-size: 19px; line-height: 1.3; color: #10151F; margin: 0; }
.post-card:hover .post-card-title { color: #2E62D9; }
.pager { display: flex; gap: 10px; justify-content: center; }
.pager a, .pager span { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: #4A5261; border: 1px solid #D4DAE4; text-decoration: none; }
.pager .current { background: #2E62D9; color: #ffffff; border-color: #2E62D9; }
.pager a:hover { border-color: #2E62D9; color: #10151F; }

/* ---------- BLOG SINGLE ---------- */
.post-head { padding: 64px var(--gut) 40px; display: flex; flex-direction: column; gap: 18px; background: #F4F6F9; position: relative; overflow: hidden; border-bottom: 1px solid #E7EAF0; }
.post-head > * { position: relative; }
.post-hero-img { margin: 0 var(--gut); margin-top: 48px; height: 380px; }
.sample-banner { background: #2E62D9; color: #ffffff; font-weight: 600; font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; text-align: center; padding: 10px 16px; }
.tip-box { background: rgba(46,98,217,0.07); border: 1px solid rgba(46,98,217,0.3); padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.tip-box .tip-key { font-weight: 700; font-size: 12.5px; letter-spacing: 1.5px; color: #2E62D9; text-transform: uppercase; }
.tip-box p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #4A5261; }
.share-row { display: flex; align-items: center; gap: 14px; border-top: 1px solid #E7EAF0; padding-top: 24px; margin-top: 8px; }
.share-row .share-key { font-weight: 600; font-size: 12.5px; letter-spacing: 1.5px; color: #6A7382; text-transform: uppercase; }
.share-row a { width: 42px; height: 42px; border: 1px solid #D4DAE4; display: flex; align-items: center; justify-content: center; color: #4A5261; font-weight: 700; font-size: 14px; text-decoration: none; }
.share-row a:hover { border-color: #2E62D9; color: #2E62D9; }
.related { padding: 0 var(--gut) 88px; display: flex; flex-direction: column; gap: 28px; }
.related-title { font-weight: 700; font-size: 24px; color: #10151F; margin: 0; }

/* ---------- SECTION HELPERS ---------- */
.inner-section { padding: 72px var(--gut); display: flex; flex-direction: column; gap: 40px; }
.inner-section.tint { background: #F4F6F9; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .content-wrap { grid-template-columns: 1fr; gap: 48px; padding: 56px 32px; }
  .side { position: static; }
  .blog-wrap { padding: 48px 32px 64px; }
  .post-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-post { grid-template-columns: 1fr; }
  .page-hero-inner { padding: 52px 32px 44px; }
  .inner-section { padding: 56px 32px; }
  .post-head { padding: 48px 32px 32px; }
  .post-hero-img { margin: 32px 32px 0; height: 300px; }
  .related { padding: 0 32px 64px; }
}
@media (max-width: 640px) {
  .post-grid, .steps, .form-row { grid-template-columns: 1fr; }
  .page-hero-inner { padding: 40px 20px 36px; }
  .content-wrap { padding: 44px 20px; }
  .blog-wrap { padding: 36px 20px 52px; }
  .inner-section { padding: 44px 20px; }
  .post-head { padding: 40px 20px 28px; }
  .post-hero-img { margin: 24px 20px 0; height: 220px; }
  .related { padding: 0 20px 52px; }
  .featured-body { padding: 28px 22px; }
  .featured-title { font-size: 24px; }
}

/* ---------- SERVICE CARDS WITH PHOTOS ---------- */
.service.has-photo { flex-direction: column; align-items: stretch; padding: 0; gap: 0; overflow: hidden; }
.service.has-photo .service-photo { height: 175px; overflow: hidden; border-bottom: 2px solid #2E62D9; }
.service.has-photo .service-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.service.has-photo:hover .service-photo img { transform: scale(1.05); }
.service.has-photo .service-inner { display: flex; gap: 16px; align-items: flex-start; padding: 24px 24px 26px; }
.service.has-photo .service-inner svg { flex-shrink: 0; margin-top: 2px; }

    /* ---------- FIXED NAV ON SCROLL ---------- */
    .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(16, 21, 31, 0.08); }
    div.page { padding-top: 84px; }
    [id] { scroll-margin-top: 100px; }
    @media (max-width: 640px) {
      div.page { padding-top: 68px; }
      [id] { scroll-margin-top: 84px; }
    }

/* ---------- SERVICE DETAIL PAGES ---------- */
.svc-banner { height: 380px; overflow: hidden; border-bottom: 3px solid #2E62D9; }
.svc-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.svc-gallery br { display: none; } /* wpautop inserts <br> between images; they would become grid cells */
.svc-gallery img { width: 100%; height: 230px; object-fit: cover; display: block; border: 1px solid #E7EAF0; }
.svc-list { display: flex; flex-direction: column; }
.svc-list a { display: block; padding: 10px 2px; border-bottom: 1px solid #EDF0F4; color: #4A5261; font-size: 15px; text-decoration: none; transition: color 0.15s, padding-left 0.15s; }
.svc-list a:hover { color: #10151F; padding-left: 6px; }
.svc-list a.current { color: #10151F; font-weight: 700; border-left: 3px solid #2E62D9; padding-left: 10px; }
.svc-list a:last-child { border-bottom: none; }
a.service { text-decoration: none; }
.post-photo img, .prose-img img, .map-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .svc-banner { height: 220px; }
  .svc-gallery { grid-template-columns: 1fr; }
  .svc-gallery img { height: 200px; }
}

    /* logged-in admin bar offset */
    body.admin-bar .nav { top: 32px; }
    @media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* ---------- BLOG COMING SOON ---------- */
.soon-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding: 96px var(--gut); }
.soon-copy { display: flex; flex-direction: column; gap: 20px; }
.soon-title { font-weight: 700; font-size: clamp(30px, 3.2vw, 44px); color: #10151F; line-height: 1.15; margin: 0; }
.soon-title .accent { color: #2E62D9; }
.soon-body { font-size: 16.5px; line-height: 1.7; color: #4A5261; margin: 0; max-width: 54ch; }
.soon-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.soon-actions .btn-solid { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; background: #2E62D9; color: #ffffff; font-weight: 600; font-size: 15.5px; }
.soon-actions .btn-solid:hover { background: #1E4BB8; color: #ffffff; }
.soon-actions .btn-outline-dark { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border: 1.5px solid #10151F; color: #10151F; font-weight: 600; font-size: 15.5px; }
.soon-actions .btn-outline-dark:hover { background: #10151F; border-color: #10151F; color: #ffffff; }
.soon-img { position: relative; border: 1px solid #D4DAE4; border-bottom: 3px solid #2E62D9; overflow: hidden; height: 440px; }
.soon-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1024px) {
  .soon-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 32px; }
  .soon-img { height: 340px; }
}
@media (max-width: 640px) {
  .soon-grid { padding: 48px 20px; }
  .soon-img { height: 240px; }
  .soon-actions .btn-solid, .soon-actions .btn-outline-dark { width: 100%; }
}

/* ---------- SERVICES INTRO ---------- */
.svc-intro { padding: 68px var(--gut) 0; }
.svc-intro .prose { max-width: 820px; }
.svc-intro .prose p { font-size: 17px; }
@media (max-width: 1024px) { .svc-intro { padding: 52px 32px 0; } }
@media (max-width: 640px) { .svc-intro { padding: 40px 20px 0; } }
