/* Shared coupon component. */
.coupon { position: relative; width: 285px; height: 336px; padding: 24px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: var(--bc-white); color: var(--bc-navy); text-align: center; text-decoration: none; }
.coupon::after { content: ''; position: absolute; inset: 12px; border: 2px dashed rgba(25,50,60,.32); border-radius: 4px; pointer-events: none; }
.coupon > :not(.deal-ribbon) { position: relative; z-index: 1; }
.coupon strong { display: block; margin-bottom: 8px; font-size: 40px; font-weight: 800; line-height: 45px; }
.coupon b { max-width: 220px; min-height: 58px; margin-bottom: 10px; display: grid; place-items: center; color: #000; font-size: 24px; font-weight: 600; line-height: 29px; }
.coupon small { display: block; margin: 2px 0 12px; font-size: 14px; line-height: 19.25px; }
.coupon em { display: inline-block; }
.coupon img { width: 190px; margin-top: 12px; }
.deal-ribbon { position: absolute; z-index: 2; top: 18px; right: -42px; width: 150px; padding: 6px; transform: rotate(45deg); background: var(--bc-navy); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; }

/* Interior page families. */
.interior-hero { position: relative; min-height: 360px; overflow: hidden; display: flex; align-items: center; border-bottom: 20px solid var(--bc-red); background: linear-gradient(90deg, rgba(25,50,60,.98), rgba(25,50,60,.78) 50%, rgba(25,50,60,.25)), url('/wp-content/themes/bill-clark/assets/images/hero.webp') center / cover no-repeat; }
.interior-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(25,50,60,.9) 0, rgba(25,50,60,.62) 52%, rgba(25,50,60,.12) 78%); pointer-events: none; }
.interior-hero-media { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; margin: 0; }
.interior-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.interior-hero-copy { position: relative; z-index: 2; }
.interior-hero h1 { max-width: 900px; margin: 0; color: #fff; font-size: 52px; font-weight: 800; line-height: 1.12; text-transform: uppercase; }
.interior-hero h1::after { content: ''; width: 190px; height: 8px; margin-top: 18px; display: block; background: var(--bc-yellow); }
.interior-hero--compact { min-height: 245px; background: var(--bc-navy); }
.interior-body { padding-top: 60px; padding-bottom: 70px; }
.interior-body > .wp-block-post-content > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.interior-body > .wp-block-post-content > .alignwide,
.interior-body > .wp-block-post-content > .interior-lead-grid,
.interior-body > .wp-block-post-content > .interior-wide,
.interior-body > .wp-block-post-content > .offers-grid { max-width: 1300px; }
.interior-lead-grid { margin-bottom: 60px; display: grid; grid-template-columns: minmax(0, 1fr) 484px; gap: 60px; align-items: start; }
.interior-lead-grid > .wp-block-group { min-width: 0; }
.interior-lead-grid .estimate-card { min-height: 820px; }
.interior-lead-grid .estimate-card h2 { font-family: var(--bc-font) !important; }
.interior-jump-links { margin: 0 auto 50px !important; padding: 20px 25px; border-left: 8px solid var(--bc-yellow); background: var(--bc-light); }
.interior-jump-links strong { color: var(--bc-navy); }
.interior-jump-links a { margin-right: 18px; font-weight: 700; }
.interior-section { margin-top: 55px !important; margin-bottom: 55px !important; }
.interior-section--tint { max-width: 1100px !important; padding: 40px 45px; border-radius: 8px; background: var(--bc-light); }
.interior-section--blue { max-width: 1100px !important; padding: 40px 45px; border-radius: 8px; background: var(--bc-blue); color: #fff; }
.interior-section--blue h2, .interior-section--blue h3, .interior-section--blue p, .interior-section--blue li { color: #fff; }
.check-list { padding-left: 0 !important; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 28px; list-style: none; }
.check-list li { position: relative; padding-left: 25px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--bc-red); font-weight: 800; }
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.package-card { min-height: 250px; padding: 28px; display: flex; flex-direction: column; border-top: 8px solid var(--bc-yellow); background: var(--bc-light); }
.package-card p { flex: 1; }
.package-card a { font-weight: 700; text-transform: uppercase; }
.office-panel { padding: 36px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 35px; border-radius: 8px; background: var(--bc-navy); color: #fff; }
.office-panel h2, .office-panel h3, .office-panel p, .office-panel a { color: #fff; }
.content-callout { max-width: 1300px !important; margin-top: 55px !important; margin-bottom: 55px !important; padding: 24px 30px; display: flex; align-items: center; justify-content: center; gap: 15px; background: var(--bc-blue); color: #fff; font-size: 28px; font-weight: 700; text-align: center; }
.content-callout a:not(.button) { color: #fff; }
.offers-intro { max-width: 820px !important; margin-bottom: 45px !important; text-align: center; }
.offers-grid { margin-bottom: 55px !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.offers-grid .coupon { width: 100%; height: 380px; }
.interior-article > .wp-block-post-content { max-width: 1000px; margin-inline: auto; }
.interior-article h2 { margin-top: 46px; }
.interior-article .article-cta { margin-top: 50px; padding: 35px 40px; background: var(--bc-blue); color: #fff; }
.interior-article .article-cta h2, .interior-article .article-cta p { color: #fff; }
.blog-archive .archive-intro { max-width: 850px; margin: 0 auto 45px; font-size: 18px; text-align: center; }
.post-card { height: 100%; display: flex; flex-direction: column; }
.post-card__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__copy { height: 100%; padding: 24px; display: flex; flex-direction: column; }
.post-card__copy p { flex: 1; }

@media (max-width: 1023px) {
  .interior-lead-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 30px; }
}

@media (max-width: 767px) {
  .coupon { width: calc(50% - 5px); height: 240px; padding: 13px; }
  .coupon strong { font-size: 27px; line-height: 30px; }
  .coupon b { min-height: 38px; font-size: 16px; line-height: 19px; }
  .coupon small { font-size: 9px; }
  .coupon img { width: 120px; }
  .interior-hero { min-height: 260px; border-bottom-width: 8px; }
  .interior-hero--compact { min-height: 190px; }
  .interior-hero h1 { max-width: 90%; font-size: 32px; line-height: 1.15; }
  .interior-hero h1::after { width: 110px; height: 5px; margin-top: 12px; }
  .interior-body { padding-top: 38px; padding-bottom: 45px; }
  .interior-lead-grid { grid-template-columns: 1fr; gap: 30px; }
  .interior-lead-grid .estimate-card { grid-row: auto; }
  .check-list, .package-grid, .office-panel, .offers-grid, .blog-archive-grid { grid-template-columns: 1fr; }
  .interior-section--tint, .interior-section--blue { padding: 28px 22px; }
  .content-callout { padding: 22px; display: block; font-size: 20px; }
  .content-callout .button { display: block; width: max-content; margin: 12px auto 0; }
  .offers-grid { width: min(100%, 340px); margin-inline: auto !important; }
  .offers-grid .coupon { height: 350px; }
}
