/*
Theme Name: Boss Painting PA
Theme URI: https://bosspaintingpa.com/
Author: Boss
Author URI: https://bosspaintingpa.com/
Description: Custom Elementor-ready WordPress theme for Boss Painting PA, a painting contractor serving Wyomissing and Berks County, PA. Auto-creates all pages with native Elementor widgets.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boss-painting-pa
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments
*/

:root {
  --bpp-primary: #1D4ED8;
  --bpp-primary-dark: #1E3A8A;
  --bpp-accent: #F97316;
  --bpp-accent-dark: #C2570C;
  --bpp-dark: #0F172A;
  --bpp-topbar-bg: #0F172A;
  --bpp-header-bg: #FFFFFF;
  --bpp-footer-bg: #0F172A;
  --bpp-text: #334155;
  --bpp-muted: #64748B;
  --bpp-light: #F8FAFC;
  --bpp-border: #E2E8F0;
  --bpp-heading-font: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --bpp-body-font: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  --bpp-body-size: 16px;
  --bpp-header-h: 84px;
  --bpp-radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--bpp-body-font); font-size: var(--bpp-body-size); line-height: 1.7; color: var(--bpp-text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bpp-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bpp-accent-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--bpp-heading-font); color: var(--bpp-dark); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--bpp-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute; left: -9999px; }
.bpp-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--bpp-accent); color: #fff; padding: 10px 16px; z-index: 100000; }
.skip-link:focus { left: 10px; top: 10px; }

/* Top bar */
.bpp-topbar { background: var(--bpp-topbar-bg); color: #CBD5E1; font-size: 13.5px; }
.bpp-topbar .bpp-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.bpp-topbar a { color: #fff; font-weight: 700; }
.bpp-topbar a:hover { color: var(--bpp-accent); }
.bpp-topbar-left, .bpp-topbar-right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.bpp-topbar i { color: var(--bpp-accent); margin-right: 6px; }
.bpp-social a { margin-left: 12px; font-weight: 400; }

/* Header */
.bpp-header { background: var(--bpp-header-bg); border-bottom: 1px solid var(--bpp-border); z-index: 999; width: 100%; }
.bpp-header.is-sticky { position: sticky; top: 0; }
.admin-bar .bpp-header.is-sticky { top: 32px; }
.bpp-header.is-stuck { box-shadow: 0 4px 24px rgba(15,23,42,.08); }
.bpp-header .bpp-container { display: flex; align-items: center; justify-content: space-between; min-height: var(--bpp-header-h); gap: 24px; }
.bpp-brand { display: flex; align-items: center; gap: 12px; color: var(--bpp-dark); }
.bpp-brand img { height: calc(var(--bpp-header-h) - 14px); width: auto; }
.bpp-brand-text strong { display: block; font-family: var(--bpp-heading-font); font-size: 20px; line-height: 1.1; }
.bpp-brand-text span { font-size: 12.5px; color: var(--bpp-muted); }
.bpp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.bpp-nav li { position: relative; }
.bpp-nav a { display: block; padding: 10px 14px; color: var(--bpp-dark); font-weight: 700; font-size: 15px; border-radius: 6px; }
.bpp-nav a:hover, .bpp-nav .current-menu-item > a { color: var(--bpp-primary); background: #EEF2FF; }
.bpp-nav ul ul { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--bpp-border); border-radius: var(--bpp-radius); box-shadow: 0 12px 32px rgba(15,23,42,.12); padding: 8px; flex-direction: column; align-items: stretch; gap: 0; }
.bpp-nav li:hover > ul, .bpp-nav li:focus-within > ul { display: flex; }
.bpp-nav ul ul a { font-weight: 600; }
.bpp-header-cta { display: flex; align-items: center; gap: 18px; }
.bpp-header-phone { font-weight: 800; color: var(--bpp-dark); font-family: var(--bpp-heading-font); white-space: nowrap; }
.bpp-header-phone i { color: var(--bpp-accent); margin-right: 6px; }
.bpp-btn { display: inline-block; background: var(--bpp-accent); color: #fff; font-weight: 800; padding: 13px 26px; border-radius: 8px; border: 0; cursor: pointer; font-family: var(--bpp-heading-font); font-size: 14px; transition: background .2s; }
.bpp-btn:hover { background: var(--bpp-accent-dark); color: #fff; }
.bpp-btn-blue { background: var(--bpp-primary); }
.bpp-btn-blue:hover { background: var(--bpp-primary-dark); }
.bpp-menu-toggle { display: none; background: none; border: 1px solid var(--bpp-border); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-size: 20px; color: var(--bpp-dark); }

/* Elementor resets for the theme */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1200px; }
.bpp-page-content { min-height: 40vh; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.bpp-pill { display: inline-block; background: rgba(249,115,22,.14); color: var(--bpp-accent); font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px; font-family: var(--bpp-heading-font); }
.bpp-pill-blue { background: #EEF2FF; color: var(--bpp-primary); }
.bpp-hero-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.bpp-hero-card h3 { margin-bottom: 14px; font-size: 20px; }
.bpp-hero-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bpp-border); }
.bpp-hero-card .row:last-child { border-bottom: 0; }
.bpp-hero-card .row strong { font-family: var(--bpp-heading-font); color: var(--bpp-primary); font-size: 20px; }
.bpp-stat { text-align: center; padding: 8px; }
.bpp-stat strong { display: block; font-family: var(--bpp-heading-font); font-size: 38px; color: #fff; line-height: 1.1; }
.bpp-stat span { color: #BFDBFE; font-size: 14px; }
.bpp-stats-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.bpp-card { background: #fff; border: 1px solid var(--bpp-border); border-radius: 14px; padding: 28px; height: 100%; }
.bpp-card p { margin: 0 0 16px; }
.bpp-stars { color: var(--bpp-accent); letter-spacing: 2px; margin-bottom: 10px; }
.bpp-person { font-family: var(--bpp-heading-font); font-weight: 700; color: var(--bpp-dark); }
.bpp-person small { display: block; font-family: var(--bpp-body-font); font-weight: 400; color: var(--bpp-muted); }
.bpp-cta-box { background: linear-gradient(135deg, var(--bpp-primary), var(--bpp-primary-dark)); color: #fff; border-radius: 14px; padding: 26px; text-align: center; }
.bpp-cta-box h4 { color: #fff; font-size: 20px; }
.bpp-cta-box a.phone { display: block; color: #fff; font-family: var(--bpp-heading-font); font-size: 24px; font-weight: 800; margin: 8px 0 14px; }
.bpp-cta-box a.quote { display: inline-block; background: var(--bpp-accent); color: #fff; padding: 11px 24px; border-radius: 8px; font-weight: 800; }
.bpp-hours-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bpp-hours-table td { padding: 8px 0; border-bottom: 1px solid var(--bpp-border); }
.bpp-hours-table td:last-child { text-align: right; font-weight: 700; color: var(--bpp-dark); }
.bpp-phone-box { background: #FFF7ED; border-left: 4px solid var(--bpp-accent); border-radius: 8px; padding: 16px 20px; }
.bpp-phone-box a { font-family: var(--bpp-heading-font); font-weight: 800; font-size: 22px; color: var(--bpp-dark); }
.bpp-breadcrumb { font-size: 14px; color: rgba(255,255,255,.75); }
.bpp-breadcrumb a { color: #fff; }
.bpp-map-box iframe { width: 100%; height: 320px; border: 0; border-radius: 14px; display: block; }

/* Quote form */
.bpp-form { background: #fff; border: 1px solid var(--bpp-border); border-radius: 16px; padding: 30px; box-shadow: 0 16px 40px rgba(15,23,42,.08); }
.bpp-form h3 { font-size: 22px; margin-bottom: 18px; }
.bpp-form .bpp-field { margin-bottom: 14px; }
.bpp-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; color: var(--bpp-dark); }
.bpp-form input[type=text], .bpp-form input[type=email], .bpp-form input[type=tel], .bpp-form select, .bpp-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 8px; font: inherit; background: #fff; color: var(--bpp-dark); }
.bpp-form input:focus, .bpp-form select:focus, .bpp-form textarea:focus { border-color: var(--bpp-primary); outline: none; box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
.bpp-form .bpp-btn { width: 100%; padding: 15px; font-size: 15px; }
.bpp-form-msg { margin-top: 12px; padding: 12px 14px; border-radius: 8px; font-weight: 700; display: none; }
.bpp-form-msg.ok { display: block; background: #DCFCE7; color: #166534; }
.bpp-form-msg.err { display: block; background: #FEE2E2; color: #991B1B; }
.bpp-hp { position: absolute; left: -9999px; }

/* Blog and sidebar layout */
.bpp-hero-inner { background: linear-gradient(135deg, rgba(15,23,42,.92), rgba(30,58,138,.88)); background-size: cover; background-position: center; color: #fff; padding: 70px 0; }
.bpp-hero-inner h1 { color: #fff; font-size: 40px; margin-bottom: 8px; }
.bpp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding: 60px 0; }
.bpp-layout.no-sidebar { grid-template-columns: 1fr; }
.bpp-post-card { border: 1px solid var(--bpp-border); border-radius: 14px; overflow: hidden; margin-bottom: 28px; background: #fff; }
.bpp-post-card .thumb img { width: 100%; height: 260px; object-fit: cover; }
.bpp-post-card .body { padding: 26px; }
.bpp-post-card h2 { font-size: 24px; }
.bpp-post-card h2 a, .bpp-post-card h3 a { color: var(--bpp-dark); }
.bpp-post-card h2 a:hover, .bpp-post-card h3 a:hover { color: var(--bpp-primary); }
.bpp-meta { font-size: 13.5px; color: var(--bpp-muted); margin-bottom: 10px; }
.bpp-readmore { font-weight: 800; font-family: var(--bpp-heading-font); font-size: 14px; }
.bpp-entry h2 { font-size: 28px; margin-top: 1.6em; }
.bpp-entry h3 { font-size: 22px; margin-top: 1.4em; }
.bpp-entry ul, .bpp-entry ol { padding-left: 22px; }
.bpp-entry li { margin-bottom: 6px; }
.bpp-entry .bpp-featured img { width: 100%; border-radius: 14px; margin-bottom: 28px; }
.bpp-widget { border: 1px solid var(--bpp-border); border-radius: 14px; padding: 24px; margin-bottom: 24px; background: #fff; }
.bpp-widget h4 { font-size: 16px; margin-bottom: 14px; }
.bpp-widget ul { list-style: none; margin: 0; padding: 0; }
.bpp-widget li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--bpp-border); color: var(--bpp-text); font-weight: 600; }
.bpp-widget li:last-child a { border-bottom: 0; }
.bpp-widget li a:hover { color: var(--bpp-primary); }
.bpp-pagination { display: flex; gap: 8px; flex-wrap: wrap; }
.bpp-pagination a, .bpp-pagination span { padding: 8px 14px; border: 1px solid var(--bpp-border); border-radius: 8px; font-weight: 700; }
.bpp-pagination .current { background: var(--bpp-primary); color: #fff; border-color: var(--bpp-primary); }
.bpp-404 { text-align: center; padding: 120px 0; }
.bpp-404 h1 { font-size: 90px; color: var(--bpp-primary); margin-bottom: 0; }
.bpp-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Footer */
.bpp-footer { background: var(--bpp-footer-bg); color: #CBD5E1; padding-top: 70px; }
.bpp-footer-grid { display: grid; gap: 40px; padding-bottom: 50px; }
.bpp-footer-grid.cols-4 { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.bpp-footer-grid.cols-3 { grid-template-columns: 1.4fr 1fr 1.2fr; }
.bpp-footer-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.bpp-footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.bpp-footer a { color: #CBD5E1; }
.bpp-footer a:hover { color: var(--bpp-accent); }
.bpp-footer ul { list-style: none; padding: 0; margin: 0; }
.bpp-footer li { margin-bottom: 9px; }
.bpp-footer .fi { color: var(--bpp-accent); margin-right: 8px; }
.bpp-footer-logo img { height: 90px; width: auto; margin-bottom: 14px; }
.bpp-copy { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* AI chat */
.bpp-chat-btn { position: fixed; right: 22px; bottom: 22px; width: 62px; height: 62px; border-radius: 50%; background: var(--bpp-accent); color: #fff; border: 0; font-size: 26px; cursor: pointer; box-shadow: 0 10px 30px rgba(249,115,22,.45); z-index: 9998; }
.bpp-chat { position: fixed; right: 22px; bottom: 96px; width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 140px); background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(15,23,42,.3); display: none; flex-direction: column; overflow: hidden; z-index: 9999; }
.bpp-chat.open { display: flex; }
.bpp-chat-head { background: var(--bpp-primary); color: #fff; padding: 16px 18px; font-family: var(--bpp-heading-font); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.bpp-chat-head button { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.bpp-chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bpp-light); }
.bpp-msg { margin-bottom: 12px; max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.bpp-msg.bot { background: #fff; border: 1px solid var(--bpp-border); }
.bpp-msg.user { background: var(--bpp-primary); color: #fff; margin-left: auto; }
.bpp-chat-form { display: flex; border-top: 1px solid var(--bpp-border); }
.bpp-chat-form input { flex: 1; border: 0; padding: 14px; font: inherit; }
.bpp-chat-form button { background: var(--bpp-accent); color: #fff; border: 0; padding: 0 20px; font-weight: 800; cursor: pointer; }

.bpp-callbar { display: none; }

@media (max-width: 1024px) {
  .bpp-layout { grid-template-columns: 1fr; }
  .bpp-footer-grid.cols-4, .bpp-footer-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .bpp-header-phone { display: none; }
}
@media (max-width: 900px) {
  .bpp-menu-toggle { display: block; }
  .bpp-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--bpp-border); padding: 12px 24px 20px; }
  .bpp-nav.open { display: block; }
  .bpp-nav ul { flex-direction: column; align-items: stretch; }
  .bpp-nav ul ul { position: static; display: flex; box-shadow: none; border: 0; padding-left: 14px; }
  .bpp-header .bpp-container { position: relative; }
  .bpp-header-cta .bpp-btn { display: none; }
  .bpp-topbar-right { display: none; }
  .bpp-hero-inner h1 { font-size: 30px; }
  .bpp-blog-grid { grid-template-columns: 1fr; }
  .bpp-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; }
  .bpp-callbar a { flex: 1; text-align: center; padding: 14px; font-weight: 800; color: #fff; font-family: var(--bpp-heading-font); }
  .bpp-callbar a:first-child { background: var(--bpp-primary); }
  .bpp-callbar a:last-child { background: var(--bpp-accent); }
  .bpp-chat-btn { bottom: 76px; }
  .bpp-chat { bottom: 150px; }
  body { padding-bottom: 50px; }
}
@media (max-width: 767px) {
  .bpp-footer-grid.cols-4, .bpp-footer-grid.cols-3, .bpp-footer-grid.cols-2 { grid-template-columns: 1fr; }
  .elementor-widget-heading h1.elementor-heading-title { font-size: 32px !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
