/* Area pages (roofing / siding / windows by city) */
.ap {
   --ap-navy: #172B56;
   --ap-navy-2: #0E1D3D;
   --ap-cyan: #00ABE7;
   --ap-ice: #EEF7FB;
   --ap-line: #D6E9F2;
   --ap-muted: #5B6B84;
   color: #5B6B84;
}
.ap h1 { color: var(--ap-navy); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.ap h2 { color: var(--ap-navy); font-weight: 800; font-size: 36px; line-height: 1.2; margin: 0; }
.ap h3 { color: var(--ap-navy); font-weight: 700; font-size: 24px; line-height: 1.3; margin: 0 0 14px; }
.ap p { margin: 0 0 16px; }
.ap a:not(.ap-btn) { color: #0089BA; text-decoration: underline; text-decoration-color: rgba(0, 171, 231, .35); text-underline-offset: 3px; }
.ap a:not(.ap-btn):hover { color: var(--ap-navy); }
.ap-sec { padding: 72px 0; }
.ap-white + .ap-white { padding-top: 0; }
.ap-band { background: var(--ap-ice); }
.ap-full > p { max-width: 900px; }

/* heading with brand icon */
.ap-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.ap-head img { width: 46px; height: 46px; flex: 0 0 46px; }

/* intro */
.ap-hero { padding: 96px 0 0; text-align: center; }
.ap-hero h1 { max-width: 900px; margin: 0 auto 26px; font-size: 48px; }
.ap-hero .ap-lead { max-width: 880px; margin: 0 auto; text-align: left; }
.ap-hero .ap-lead p:first-child { font-size: 20px; color: #3E4C66; }

/* trust strip */
.ap-trust { margin: 48px auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(4, 1fr);
   background: var(--ap-navy); border-radius: 14px; overflow: hidden; position: relative; }
.ap-trust div { padding: 24px 18px; text-align: center; color: #fff; font-size: 15px; line-height: 1.4;
   border-left: 1px solid rgba(255, 255, 255, .12); position: relative; z-index: 1; }
.ap-trust div:first-child { border-left: 0; }
.ap-trust strong { display: block; font-size: 28px; font-weight: 800; color: var(--ap-cyan); margin-bottom: 4px; }

/* split section: text + full-height photo */
.ap-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.ap-split.ap-flip .ap-media { order: 2; }
.ap-media { position: relative; min-height: 380px; }
.ap-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
   border-radius: 14px; z-index: 1; box-shadow: 0 18px 40px rgba(23, 43, 86, .18); }
.ap-copy { align-self: center; }

/* lists */
.ap-checks { list-style: none; margin: 0 0 18px; padding: 0; }
.ap-checks li { position: relative; padding: 6px 0 6px 34px; color: #3E4C66; line-height: 1.5; }
.ap-checks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%;
   background: var(--ap-cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; list-style: none; margin: 0 0 18px; padding: 0; }
.ap-grid li { background: #fff; border: 1px solid var(--ap-line); border-radius: 12px; padding: 18px 18px 18px 54px;
   position: relative; color: #3E4C66; line-height: 1.5; }
.ap-grid li::before { left: 18px; top: 19px; }
.ap-grid.ap-checks li::before { left: 18px; }
.ap-gridwrap { margin-top: 48px; background: var(--ap-ice); border-radius: 18px; padding: 36px; }
.ap-gridwrap h3 { margin-bottom: 20px; }

/* long-item cards (e.g. material comparisons) */
.ap-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; list-style: none; margin: 0 0 24px; padding: 0; }
.ap-cards li { background: #fff; border-radius: 16px; padding: 30px; border-top: 5px solid var(--ap-cyan);
   box-shadow: 0 10px 30px rgba(23, 43, 86, .08); line-height: 1.65; }
.ap-cards li strong { display: block; color: var(--ap-navy); font-size: 20px; line-height: 1.35; margin-bottom: 10px; }

/* wide photo above a card section */
.ap-wide { margin: 0 0 28px; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 36px rgba(23, 43, 86, .14); }
.ap-wide img { display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }

/* paragraph-only sections */
.ap-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.ap-panels > div { background: #fff; border-radius: 16px; padding: 30px; border-left: 5px solid var(--ap-cyan);
   box-shadow: 0 10px 30px rgba(23, 43, 86, .08); color: #3E4C66; }
.ap-panels > div p:last-child { margin-bottom: 0; }

/* navy band (why choose us) */
.ap-navy-band { background: var(--ap-navy); position: relative; overflow: hidden; color: #C9D4E6; }
.ap-navy-band h2, .ap-navy-band h3 { color: #fff; }
.ap .ap-navy-band p { color: #C9D4E6; }
.ap-navy-band .ap-grid li { background: #213A6E; border-color: rgba(255, 255, 255, .12); color: #fff; }
.ap-navy-band .auto-container { position: relative; z-index: 1; }

/* call to action */
.ap-cta { padding: 24px 0 72px; }
.ap-cta-box { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; background: linear-gradient(120deg, var(--ap-navy-2), var(--ap-navy));
   border-radius: 20px; overflow: hidden; box-shadow: 0 24px 50px rgba(14, 29, 61, .25); }
.ap-cta-body { position: relative; z-index: 1; padding: 52px 48px; color: #C9D4E6; }
.ap-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
   color: var(--ap-cyan); margin-bottom: 14px; }
.ap-cta-body .ap-cta-title { color: #fff; font-size: 38px; font-weight: 800; line-height: 1.15; margin: 0 0 14px; }
.ap .ap-cta-body p { font-size: 17px; margin: 0 0 26px; max-width: 460px; color: #C9D4E6; }
.ap .ap-cta-body .ap-cta-title { color: #fff; font-size: 38px; margin-bottom: 14px; max-width: none; }
.ap-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ap-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
   line-height: 1; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.ap-btn-primary { background: var(--ap-cyan); color: #fff !important; }
.ap-btn-primary:hover { background: #fff; color: var(--ap-navy) !important; transform: translateY(-2px); }
.ap-btn-ghost { border: 2px solid rgba(255, 255, 255, .4); color: #fff !important; }
.ap-btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.ap-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ap-cta-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: #9FB0CC; }
.ap-cta-points li::before { content: "\2713"; color: var(--ap-cyan); font-weight: 800; margin-right: 8px; }
.ap-cta-photo { position: relative; min-height: 340px; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.ap-cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 29, 61, .45), rgba(14, 29, 61, 0) 60%); }

/* FAQ */
.ap-faq { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.ap-faq-side { position: sticky; top: 130px; }
.ap-faq-side h2 { margin-bottom: 14px; }
.ap-faq-card { margin-top: 26px; background: var(--ap-navy); border-radius: 16px; padding: 28px; color: #C9D4E6; position: relative; overflow: hidden; }
.ap-faq-card > * { position: relative; z-index: 1; }
.ap-faq-card .ap-faq-card-title { color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.ap .ap-faq-card p { font-size: 15px; color: #C9D4E6; }
.ap-qa { background: #fff; border: 1px solid var(--ap-line); border-left: 5px solid var(--ap-cyan); border-radius: 12px; padding: 24px 26px 10px; margin-bottom: 16px; }
.ap-qa h3 { font-size: 20px; margin-bottom: 10px; }
.ap-closing { margin-top: 28px; padding: 26px 28px; border-radius: 14px; background: var(--ap-ice); color: #3E4C66; font-size: 18px; }
.ap-closing p:last-child { margin-bottom: 0; }

@media (max-width: 991px) {
   .ap-hero { padding-top: 64px; }
   .ap-hero h1 { font-size: 36px; }
   .ap h2 { font-size: 30px; }
   .ap-sec { padding: 56px 0; }
   .ap-split, .ap-faq, .ap-cta-box { grid-template-columns: 1fr; gap: 36px; }
   .ap-split .ap-media, .ap-split.ap-flip .ap-media { order: -1; min-height: 300px; }
   .ap-faq-side { position: static; }
   .ap-trust { grid-template-columns: repeat(2, 1fr); }
   .ap-trust div:nth-child(3) { border-left: 0; }
   .ap-trust div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
   .ap-cta-body { padding: 40px 28px; }
   .ap .ap-cta-body .ap-cta-title { font-size: 30px; }
   .ap-cta-photo { min-height: 220px; clip-path: none; order: -1; }
   .ap-gridwrap { padding: 26px 20px; }
}
@media (max-width: 575px) {
   .ap-hero h1 { font-size: 30px; }
   .ap-hero .ap-lead p:first-child { font-size: 18px; }
   .ap h2 { font-size: 26px; }
   .ap-head img { width: 36px; height: 36px; flex-basis: 36px; }
   .ap-trust strong { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
   .ap-btn { transition: none; }
   .ap-btn:hover { transform: none; }
}
