/* =========================================================
   Big Easy Siding — components for the six interior pages
   (About, Testimonials, Blog, Contact, Service Areas, Services)
   Loads after style.css and service.css and reuses both.
   ========================================================= */

/* ---------- stats band ---------- */
.stats{background:var(--navy-900);padding:44px 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.stat{text-align:center;padding:8px 14px;border-left:1px solid rgba(255,255,255,.13)}
.stat:first-child{border-left:0}
.stat-ico{width:34px;height:34px;margin:0 auto 12px;color:var(--gold)}
.stat-fig{
  font-family:var(--serif);font-weight:700;color:#fff;
  font-size:clamp(28px,3.1vw,40px);line-height:1.05;margin:0 0 6px;letter-spacing:-.015em;
}
.stat-fig .stars-inline{display:inline-flex;gap:3px}
.stat-fig .stars-inline svg{width:22px;height:22px;color:var(--star)}
.stat-lab{color:#C3D3E4;font-size:14px;line-height:1.45;margin:0}

/* ---------- generic two-column media block ---------- */
.split{padding:66px 0}
.split-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center}
.split-grid.media-right .split-media{order:2}
.split-media img{width:100%;height:400px;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow-card)}
.split-media.stack{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.split-media.stack img{height:250px}
.split-body h2{font-size:clamp(26px,2.6vw,35px);margin:0 0 16px}
.split-body p{font-size:15.5px;line-height:1.76;margin:0 0 15px}
.split-body p:last-child{margin-bottom:0}
.split-body .lead{font-size:17px;line-height:1.68;color:#3C5570}

/* ---------- numbered process timeline ---------- */
.process{background:var(--cool);padding:64px 0}
.timeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;counter-reset:step}
.tl-step{position:relative;background:#fff;border:1px solid var(--line);border-radius:10px;padding:26px 20px 22px}
.tl-num{
  /* NOT var(--gold-dk): that is 2.07:1 on white and these numerals are large
     text needing 3:1. This deeper bronze keeps the gold accent at 3.99:1. */
  font-family:var(--serif);font-weight:700;color:#A8760A;
  font-size:30px;line-height:1;display:block;margin-bottom:12px;
}
.tl-step h3{font-size:16px;margin:0 0 8px}
.tl-step p{font-size:14px;line-height:1.6;margin:0}
.tl-step::after{
  content:"";position:absolute;top:38px;right:-11px;width:14px;height:2px;
  background:var(--line);
}
.tl-step:last-child::after{display:none}

/* ---------- gallery ---------- */
.gallery{padding:64px 0}
/* A wrapping row rather than a grid, so a last row that cannot fill itself —
   five photos over three columns — sits centred instead of hanging left.
   The column count is the only thing the breakpoints below change. */
.gal-grid{--gal-cols:3;--gal-gap:16px;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--gal-gap)}
.gal-grid>*{flex:0 1 calc((100% - (var(--gal-cols) - 1) * var(--gal-gap)) / var(--gal-cols));min-width:0}
.gal{position:relative;border-radius:10px;overflow:hidden;box-shadow:var(--shadow-card);margin:0}
.gal img{width:100%;height:250px;object-fit:cover;display:block;transition:transform .35s ease}
.gal:hover img{transform:scale(1.04)}
.gal figcaption{
  position:absolute;left:0;right:0;bottom:0;padding:26px 16px 13px;
  background:linear-gradient(180deg,rgba(6,20,36,0),rgba(6,20,36,.82));
  color:#fff;font-size:13.5px;font-weight:700;letter-spacing:.02em;
}
/* Kept only so the design's own class name still resolves — every photo is
   one tile now, whatever it is called. */
.gal-wide img{height:250px}

/* ---------- before / after ---------- */
.ba-section{background:var(--warm);padding:64px 0}
.ba-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.ba-set{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px;box-shadow:var(--shadow-card)}
.ba-imgs{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center}
.ba-imgs figure{position:relative;margin:0;border-radius:7px;overflow:hidden}
.ba-imgs img{width:100%;height:190px;object-fit:cover;display:block}
.ba-tag{
  position:absolute;left:8px;top:8px;padding:4px 10px;border-radius:4px;
  font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
}
.ba-tag.before{background:rgba(10,29,50,.86);color:#fff}
.ba-tag.after{background:var(--gold);color:var(--navy-900)}
.ba-set h3{font-size:15.5px;margin:13px 4px 2px}
.ba-set p{font-size:13.5px;margin:0 4px;color:#5A6E85}

/* ---------- blog ---------- */
.featured{padding:60px 0 0}
.feat-card{
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:0;
  background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;
  box-shadow:var(--shadow-lift);
}
.feat-card img{width:100%;height:100%;min-height:330px;object-fit:cover;display:block}
.feat-body{padding:36px 38px}
.feat-body h2{font-size:clamp(23px,2.2vw,30px);margin:12px 0 14px}
.feat-body p{font-size:15.5px;line-height:1.7;margin:0 0 22px}
.pill{
  display:inline-block;padding:5px 12px;border-radius:20px;
  background:var(--tint);color:var(--navy-700);
  font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
}
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.post{
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:10px;overflow:hidden;box-shadow:var(--shadow-card);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.post:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift);border-color:#C4D4E6}
.post img{width:100%;height:176px;object-fit:cover}
.post-body{padding:20px 20px 22px;display:flex;flex-direction:column;flex:1}
.post-body h3{font-size:17px;line-height:1.36;margin:11px 0 10px}
.post-body p{font-size:14px;line-height:1.62;margin:0 0 16px;flex:1}
.post-link{font-size:14px;font-weight:700;color:var(--navy-700)}
.post:hover .post-link{text-decoration:underline}

/* topic chips */
.topics{background:var(--tint);padding:56px 0}
.topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.topic{
  display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);
  border-radius:9px;padding:17px 18px;font-size:14.5px;font-weight:600;color:#28425F;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,color .18s ease;
}
.topic:hover{border-color:var(--navy-700);color:var(--navy-700);box-shadow:var(--shadow-card);transform:translateY(-2px)}
.topic .t-ico{width:34px;height:34px;flex:0 0 auto;border-radius:8px;background:var(--tint);color:var(--navy-700);display:grid;place-items:center}
.topic .t-ico svg{width:18px;height:18px}

/* ---------- contact ---------- */
.contact-split{padding:64px 0}
.contact-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:48px;align-items:start}
.contact-media img{width:100%;height:100%;min-height:520px;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow-card)}
.contact-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 28px 22px;box-shadow:var(--shadow-lift)}
.contact-card h2{font-family:var(--serif);font-size:25px;font-weight:700;margin:0 0 8px}
.contact-card > p{font-size:14.5px;line-height:1.6;color:#5A6E85;margin:0 0 18px}

.info-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.info{background:#fff;border:1px solid var(--line);border-radius:10px;padding:26px 24px;box-shadow:var(--shadow-card);text-align:center}
.info-ico{width:52px;height:52px;margin:0 auto 16px;border-radius:12px;background:var(--navy-700);color:#fff;display:grid;place-items:center}
.info-ico svg{width:25px;height:25px}
.info h3{font-size:17px;margin:0 0 10px}
.info p,.info address{font-size:14.5px;line-height:1.7;margin:0;font-style:normal;color:var(--body)}
.info a{color:var(--navy-700);font-weight:700}
.info a:hover{text-decoration:underline}

/* ---------- comparison table ---------- */
.compare{padding:64px 0}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow-card)}
table.cmp{width:100%;border-collapse:collapse;min-width:720px;font-size:14.5px}
table.cmp th,table.cmp td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
table.cmp thead th{background:var(--navy-700);color:#fff;font-size:13.5px;letter-spacing:.03em;border-bottom:0;white-space:nowrap}
table.cmp tbody tr:last-child td{border-bottom:0}
table.cmp tbody tr:nth-child(even){background:#FAFCFE}
table.cmp th[scope="row"]{font-weight:700;color:var(--ink);white-space:nowrap;background:none}
table.cmp a{color:var(--navy-700);text-decoration:underline}
.cmp-note{margin:16px 0 0;font-size:13px;line-height:1.6;color:#5F7288}

/* ---------- location chips ---------- */
.loc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.loc{
  display:flex;align-items:center;gap:11px;background:#fff;border:1px solid var(--line);
  border-radius:9px;padding:16px 17px;font-size:14.5px;font-weight:600;color:#28425F;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,color .18s ease;
}
.loc:hover{border-color:var(--navy-700);color:var(--navy-700);box-shadow:var(--shadow-card);transform:translateY(-2px)}
.loc .pin{width:17px;height:17px;color:var(--gold-dk);flex:0 0 auto}
.loc .arrow{margin-left:auto;color:var(--navy-700)}
.loc small{display:block;font-weight:400;font-size:12.5px;color:#5A6E85;margin-top:2px}

/* ---------- big map band ---------- */
.mapband{background:var(--tint);padding:60px 0}
.mapband-grid{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:48px;align-items:center}
.mapband img{width:100%;max-width:520px;margin:0 auto;display:block;mix-blend-mode:multiply}

/* ---------- responsive ---------- */
@media (max-width:1200px){
  .timeline{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tl-step::after{display:none}
  .topic-grid,.loc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1000px){
  .split-grid{grid-template-columns:1fr;gap:32px}
  .split-grid.media-right .split-media{order:0}
  .split-media img{height:300px}
  .feat-card{grid-template-columns:1fr}
  .feat-card img{min-height:230px;height:230px}
  .feat-body{padding:28px 26px}
  .contact-grid{grid-template-columns:1fr;gap:30px}
  .contact-media img{min-height:280px;height:280px}
  .mapband-grid{grid-template-columns:1fr;gap:30px}
  .gal-grid{--gal-cols:2}
}
@media (max-width:860px){
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 14px}
  .stat{border-left:0}
  .split,.process,.gallery,.ba-section,.contact-split,.compare,.topics,.mapband{padding:46px 0}
  .ba-grid{grid-template-columns:1fr;gap:18px}
  .info-cards{grid-template-columns:1fr;gap:16px}
  .timeline{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topic-grid,.loc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .post-grid,.topic-grid,.loc-grid,.timeline{grid-template-columns:1fr}
  .gal-grid{--gal-cols:1}
  .split-media.stack{grid-template-columns:1fr}
  .split-media.stack img{height:200px}
  .feat-body{padding:24px 20px}
  .contact-card{padding:22px 18px 18px}
  .stats-grid{grid-template-columns:1fr;gap:22px}
}

/* ---------- larger service cards (About / Services pages) ----------
   These reuse .service-card from style.css but carry a title, a blurb and a
   link rather than the homepage's compact single-line label, so the image is
   taller and the body needs its own rules. Only these six pages load this
   file, so the homepage's compact cards are unaffected. */
.service-rail .service-card img{height:180px}
.sc-body{padding:18px 18px 20px;display:flex;flex-direction:column;flex:1}
.sc-body h3{font-size:17px;margin:0 0 8px;color:var(--ink)}
.sc-body p{font-size:14px;line-height:1.62;margin:0 0 14px;flex:1;color:var(--body)}
.sc-body .post-link{margin-top:auto}
.service-card:hover .sc-body h3{color:var(--navy-700)}

/* .cols-4 replaces an inline grid-template-columns on the About/Services rails.
   The !important that used to be needed here was only ever there to beat that
   inline style, so it goes with it. */
.service-rail.cols-4{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
@media (max-width:1200px){
  .service-rail,.service-rail.cols-4{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:860px){
  .service-rail,.service-rail.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .service-rail .service-card img{height:150px}
}
@media (max-width:600px){
  .service-rail,.service-rail.cols-4{grid-template-columns:1fr}
}

/* The photo column is much shorter than the form beside it, so it sticks rather
   than leaving ~800px of dead space scrolling past. Off below 1000px, where
   .contact-grid stacks to one column. */
@media (min-width:1001px){
  .contact-media{position:sticky;top:calc(var(--header-h) + 24px)}
}

/* A full-width third image in the 2-up media stack (was an inline style). */
.split-media__wide{grid-column:1 / -1;height:250px}

/* =========================================================
   BLOG, SEARCH AND THE SMALL PIECES THE WP BUILD ADDS
   Everything here is new to WordPress — the static build had no single-post
   view, no search and no pagination.
   ========================================================= */

/* ---- accessible-only text ---- */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---- header fallback when no logo is set ---- */
.brand-text{font-family:var(--serif);font-size:22px;font-weight:700;color:var(--ink)}

/* ---- post card without a featured image ---- */
.post-noimg{display:block;aspect-ratio:400/338;background:linear-gradient(135deg,var(--tint) 0%,#E4ECF6 100%)}

/* ---- single post ---- */
.post-single .split-grid{grid-template-columns:minmax(0,1fr) 360px;gap:52px;align-items:start}
.post-hero{margin:0 0 26px}
.post-hero img{width:100%;border-radius:var(--radius)}
.post-side{position:sticky;top:calc(var(--header-h) + 24px)}
.post-cats{margin:28px 0 0;padding-top:18px;border-top:1px solid var(--line);font-size:14px;color:var(--body)}
.post-cats a{display:inline-block;margin:0 4px;padding:4px 12px;border-radius:20px;background:var(--tint);color:var(--navy-700);font-weight:600;font-size:13px}
.post-cats a:hover{background:var(--navy-700);color:#fff}

/* ---- rich text from the editor ---- */
.rt{font-size:16px;line-height:1.78;color:var(--body)}
.rt h2{margin:34px 0 12px;font-family:var(--serif);font-size:26px;color:var(--ink)}
.rt h3{margin:26px 0 10px;font-size:20px;color:var(--ink)}
.rt p{margin:0 0 1.1rem}
.rt a{color:var(--navy-700);text-decoration:underline}
.rt img{border-radius:var(--radius);margin:22px 0}
.rt ul,.rt ol{margin:0 0 1.1rem;padding-left:0;list-style:none}
.rt li{position:relative;padding-left:30px;margin-bottom:9px}
.rt ul li::before{content:"";position:absolute;left:4px;top:.62em;width:8px;height:8px;border-radius:50%;background:var(--gold)}
.rt ol{counter-reset:rt}
.rt ol li{counter-increment:rt}
.rt ol li::before{content:counter(rt) ".";position:absolute;left:0;top:0;font-weight:700;color:var(--navy-700)}
.rt blockquote{margin:24px 0;padding:18px 22px;border-left:4px solid var(--gold);background:var(--tint);border-radius:0 8px 8px 0;font-size:17px}
.rt table{width:100%;border-collapse:collapse;margin:22px 0}
.rt table th,.rt table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left}
.rt img,.rt iframe,.rt video{max-width:100%}
.rt iframe{width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:var(--radius)}

/* ---- search ---- */
.search-form{display:flex;gap:10px;flex-wrap:wrap;max-width:560px;margin:0 auto}
.search-field{flex:1 1 240px;min-width:0;padding:14px 16px;border:1.5px solid var(--line);border-radius:8px;background:#fff;font:inherit;font-size:15.5px;color:var(--ink)}
.search-field:focus{outline:0;border-color:var(--navy-700);box-shadow:0 0 0 3px rgba(2,52,95,.14)}
.search-field:invalid:not(:placeholder-shown){border-color:#C0392B}
.search-submit{flex:0 0 auto}
.search-again{margin:0 0 34px}
.no-results{max-width:640px;margin:0 auto 28px;text-align:center;font-size:16.5px;color:var(--body)}

/* ---- pagination ---- */
.pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:44px 0 0}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border:1.5px solid var(--line);border-radius:8px;background:#fff;font-size:15px;font-weight:600;color:var(--navy-700)}
.pagination .page-numbers:hover{border-color:var(--navy-700);background:var(--tint)}
.pagination .page-numbers.current{background:var(--navy-700);border-color:var(--navy-700);color:#fff}
.pagination .page-numbers.dots{border-color:transparent;background:none}

/* ---- odds and ends ---- */
.cards-cta{margin:32px 0 0;text-align:center}
.price-factors-title{margin:0 0 12px;font-weight:700;font-size:14.5px;color:var(--ink)}
.types-body{max-width:820px;margin:0 0 22px}
.types-grid-title{margin:0 0 14px;font-weight:700;font-size:14.5px;color:var(--ink)}

/* ---- embedded maps and videos are always fluid ---- */
.map-embed{position:relative;width:100%;border-radius:var(--radius);overflow:hidden}
.map-embed iframe{width:100%;min-height:340px;aspect-ratio:16/10;height:auto;border:0;display:block}

@media (max-width:1000px){
  .post-single .split-grid{grid-template-columns:1fr;gap:34px}
  .post-side{position:static}
}
@media (max-width:600px){
  .search-form{flex-direction:column}
  .search-submit{width:100%}
  .rt h2{font-size:22px}
  .rt h3{font-size:18px}
}

/* The split section's button pair. .hero-btns carries a 44px bottom margin for
   the hero it was named after; here the buttons close the column, so that
   margin is handed back and the gap moves above them instead. */
.split-body .split-btns{margin:24px 0 0}

/* The map band's button pair, same treatment as the split section's. */
.mapband .split-body .mapband-btns{margin:20px 0 0}

/* The overview pages' pale band. The static build set this inline on the
   section; as a class it survives the section being toggled and reordered. */
.section-cool{background:var(--cool)}
.loc-cta{margin-top:26px}

/* These three notes hold editor HTML, so they are divs; the paragraph inside
   carries the type and must not add a second margin on top of the wrapper's. */
.cmp-note>p{margin:0}
.section-white{background:#fff}

/* ---------- an article's contents rail ----------
   The same panel the legal pages use, defined here because a post loads the
   pages tier and never legal.css. It leads the sidebar, so the estimate card
   below it keeps its own spacing. */
.post-toc{background:var(--cool);border:1px solid var(--line);border-radius:10px;padding:22px 20px;margin:0 0 20px}
.post-toc .legal-toc-title{font-size:12.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#5A6E85;margin:0 0 14px}
.post-toc ol{counter-reset:toc;display:grid;gap:2px;margin:0;padding:0;list-style:none}
.post-toc li{counter-increment:toc}
.post-toc ol a{display:flex;gap:9px;padding:7px 8px;border-radius:6px;font-size:13.8px;line-height:1.45;color:#33495F}
.post-toc ol a::before{content:counter(toc) ".";color:#5F7288;font-variant-numeric:tabular-nums;flex:0 0 auto}
.post-toc ol a:hover{background:#fff;color:var(--navy-700)}
.post-toc ol a:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
