/*
Theme Name: JDB Construction & Roofing
Theme URI: https://jdbconstructionllc.com/
Author: Manus AI
Author URI: https://manus.im/
Description: A WordPress-ready migration theme for JDB Construction & Roofing, including the original landing page, service area pages, testimonials carousel, and free inspection request form.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jdb-construction-roofing
*/

:root {
  --jdb-primary: #A63A3A;
  --jdb-primary-dark: #7F2B2B;
  --jdb-gold: #D4AF37;
  --jdb-orange: #B87333;
  --jdb-charcoal: #2A2A2A;
  --jdb-black: #1A1A1A;
  --jdb-cream: #F5F1E8;
  --jdb-white: #FFFFFF;
  --jdb-paper: #FFFCF7;
  --jdb-soft: #F7F2EA;
  --jdb-ink: #1F1F1F;
  --jdb-muted: #625A50;
  --jdb-border: rgba(166, 58, 58, 0.18);
  --jdb-shadow: 0 18px 45px rgba(31, 31, 31, 0.12);
  --jdb-radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; max-width: 100%; overflow-x: hidden; }
body { margin: 0; width: 100%; max-width: 100%; overflow-x: hidden; color: var(--jdb-ink); background: var(--jdb-white); font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; }
body.jdb-modal-open { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, transform .25s ease, background .25s ease, box-shadow .25s ease; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 1rem; color: var(--jdb-ink); }
p { margin: 0 0 1rem; }

.jdb-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; max-width: 100%; }
.jdb-section { padding: 86px 0; background: var(--jdb-white); }
.jdb-section-title { font-size: clamp(2.2rem, 4vw, 3.8rem); color: var(--jdb-primary); text-align: center; }
.jdb-section-subtitle { max-width: 720px; margin: 0 auto 42px; text-align: center; color: var(--jdb-muted); font-size: 1.08rem; }
.jdb-muted { color: var(--jdb-muted); }
.jdb-card { background: var(--jdb-white); border: 1px solid var(--jdb-border); border-radius: var(--jdb-radius); box-shadow: var(--jdb-shadow); color: var(--jdb-ink); }

.jdb-header { position: fixed; top: 0; left: 0; right: 0; z-index: 99; background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); box-shadow: 0 4px 18px rgba(31,31,31,.10); border-bottom: 1px solid var(--jdb-border); }
.jdb-nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; min-width: 0; }
.jdb-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 auto; }
.jdb-brand span { min-width: 0; }
.jdb-logo { height: 58px; width: auto; flex: 0 0 auto; }
.jdb-brand-title { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; color: var(--jdb-primary); font-weight: 800; line-height: 1; }
.jdb-brand-subtitle { display: block; font-size: .76rem; color: var(--jdb-muted); margin: .15rem 0 0; white-space: nowrap; }
.jdb-menu { display: flex; align-items: center; gap: 24px; font-weight: 700; font-size: .94rem; color: var(--jdb-ink); }
.jdb-menu a:hover { color: var(--jdb-primary); }
.jdb-mobile-toggle { display: none; background: var(--jdb-primary); color: white; border: 0; border-radius: 10px; padding: 10px 12px; font-weight: 800; }

.jdb-btn, button.jdb-btn, input[type="submit"].jdb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; white-space: nowrap; }
.jdb-btn:hover { transform: translateY(-2px); box-shadow: var(--jdb-shadow); }
.jdb-btn-primary { background: var(--jdb-primary); color: var(--jdb-white); }
.jdb-btn-primary:hover { background: var(--jdb-primary-dark); color: var(--jdb-white); }
.jdb-btn-gold { background: var(--jdb-gold); color: var(--jdb-black); }
.jdb-btn-outline { background: rgba(255,255,255,.14); color: var(--jdb-white); border-color: rgba(255,255,255,.9); }
.jdb-btn-outline:hover { background: rgba(255,255,255,.24); color: var(--jdb-white); }
.jdb-btn-full { width: 100%; white-space: normal; }

.jdb-hero { min-height: 710px; padding: 145px 0 90px; display: flex; align-items: center; position: relative; overflow: hidden; color: var(--jdb-white); }
.jdb-hero-bg { position: absolute; inset: 0; z-index: 0; }
.jdb-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.jdb-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,26,26,.76), rgba(127,43,43,.52), rgba(0,0,0,.18)); }
.jdb-hero-content { position: relative; z-index: 1; max-width: 760px; }
.jdb-hero h1 { font-size: clamp(2.75rem, 6vw, 5.8rem); color: var(--jdb-white); }
.jdb-hero p { font-size: 1.24rem; color: rgba(255,255,255,.94); max-width: 670px; }
.jdb-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.jdb-rating-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; margin-bottom: 22px; font-weight: 800; }
.star { color: var(--jdb-gold); }
.jdb-roof-divider { height: 72px; color: var(--jdb-white); display: block; margin-top: -1px; }

.jdb-services-grid, .jdb-project-grid, .jdb-area-grid { display: grid; gap: 24px; min-width: 0; }
.jdb-services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 42px; }
.jdb-service-card { padding: 30px; transition: transform .25s ease, box-shadow .25s ease; }
.jdb-service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(166,58,58,.18); }
.jdb-icon { font-size: 2.3rem; color: var(--jdb-primary); margin-bottom: 16px; }
.jdb-why { margin-top: 38px; padding: 34px; border-left: 5px solid var(--jdb-gold); background: var(--jdb-soft); border: 1px solid var(--jdb-border); border-radius: 10px; }
.jdb-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.jdb-check-list li::before { content: '✓'; color: var(--jdb-primary); font-weight: 900; margin-right: 10px; }

.jdb-projects { background: var(--jdb-soft); }
.jdb-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jdb-project-card { overflow: hidden; }
.jdb-project-card img { width: 100%; height: 310px; object-fit: cover; transition: transform .35s ease; }
.jdb-project-card:hover img { transform: scale(1.05); }
.jdb-project-body { padding: 28px; }

.jdb-testimonials { background: var(--jdb-white); }
.jdb-carousel { position: relative; max-width: 900px; margin: 0 auto; }
.jdb-carousel-window { overflow: hidden; border-radius: 18px; }
.jdb-slide { display: none; padding: 42px; text-align: center; min-height: 310px; }
.jdb-slide.active { display: block; animation: jdbFade .5s ease; }
.jdb-slide-text { font-size: 1.15rem; font-style: italic; line-height: 1.8; color: var(--jdb-ink); }
.jdb-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.jdb-carousel-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--jdb-primary); color: white; font-size: 1.3rem; cursor: pointer; }
.jdb-counter { min-width: 90px; color: var(--jdb-muted); font-weight: 800; text-align: center; }

.jdb-contact { background: var(--jdb-primary-dark); color: var(--jdb-white); }
.jdb-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.jdb-contact h2, .jdb-contact h3 { color: var(--jdb-white); }
.jdb-contact .jdb-muted { color: rgba(255,255,255,.84); }
.jdb-contact-item { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; }
.jdb-form-card { padding: 34px; color: var(--jdb-ink); background: var(--jdb-white); border: 1px solid rgba(255,255,255,.35); }
.jdb-form-card h3 { color: var(--jdb-ink); }
.jdb-form-grid { display: grid; gap: 16px; }
.jdb-form-field label { display: block; font-weight: 800; margin-bottom: 7px; font-size: .94rem; }
.jdb-form-field input, .jdb-form-field select, .jdb-form-field textarea { width: 100%; max-width: 100%; padding: 13px 14px; border: 1px solid rgba(31,31,31,.18); border-radius: 9px; background: var(--jdb-white); color: var(--jdb-ink); font: inherit; }
.jdb-form-field textarea { min-height: 120px; resize: vertical; }
.jdb-error-msg { display: none; margin-top: 10px; color: #B91C1C; font-weight: 800; }

.jdb-area-card { padding: 24px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.jdb-area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jdb-area-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(166,58,58,.16); background: var(--jdb-soft); }

.jdb-footer { background: var(--jdb-ink); color: var(--jdb-white); padding: 56px 0 30px; border-top: 1px solid rgba(255,255,255,.10); }
.jdb-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 34px; }
.jdb-footer h4 { color: var(--jdb-white); }
.jdb-footer a, .jdb-footer li, .jdb-footer p { color: rgba(255,255,255,.78); }
.jdb-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.jdb-footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 36px; padding-top: 24px; text-align: center; color: rgba(255,255,255,.62); font-size: .9rem; }

.jdb-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.jdb-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.jdb-local-reviews { background: var(--jdb-soft); }
.jdb-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.jdb-review-card { padding: 26px; }

.jdb-popup { position: fixed; inset: 0; background: rgba(0,0,0,.58); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.jdb-popup.active { display: flex; animation: jdbFade .25s ease; }
.jdb-popup-card { position: relative; width: min(520px, 100%); background: var(--jdb-white); color: var(--jdb-ink); border: 1px solid var(--jdb-border); border-radius: 22px; overflow: hidden; box-shadow: 0 25px 80px rgba(0,0,0,.28); animation: jdbZoom .35s ease; }
.jdb-popup-head { background: linear-gradient(135deg, #16A34A, #0F766E); color: white; padding: 34px 26px; text-align: center; }
.jdb-popup-head h3 { color: white; }
.jdb-checkmark { width: 70px; height: 70px; border-radius: 999px; background: white; color: #16A34A; display: inline-flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 900; margin-bottom: 12px; animation: jdbBounce .7s ease; }
.jdb-popup-body { padding: 30px; text-align: center; }
.jdb-popup-close { position: absolute; opacity: 0; }

@keyframes jdbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jdbZoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes jdbBounce { 0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); } 40%, 43% { transform: translate3d(0,-16px,0); } 70% { transform: translate3d(0,-8px,0); } 90% { transform: translate3d(0,-3px,0); } }

@media (max-width: 1120px) {
  .jdb-menu { gap: 18px; }
  .jdb-nav > .jdb-btn { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 980px) {
  .jdb-menu { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; width: 100%; max-width: 100%; background: var(--jdb-white); color: var(--jdb-ink); padding: 18px; border-radius: 14px; box-shadow: var(--jdb-shadow); border: 1px solid var(--jdb-border); flex-direction: column; align-items: flex-start; }
  .jdb-menu.open { display: flex; }
  .jdb-mobile-toggle { display: inline-flex; flex: 0 0 auto; }
  .jdb-nav > .jdb-btn { display: none; }
  .jdb-services-grid, .jdb-area-grid, .jdb-review-grid, .jdb-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jdb-contact-grid, .jdb-two-col, .jdb-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .jdb-container { width: min(100% - 24px, 1180px); }
  .jdb-brand-title, .jdb-brand-subtitle { display: none; }
  .jdb-logo { height: 48px; }
  .jdb-nav { gap: 10px; padding: 10px 0; }
  .jdb-mobile-toggle { padding: 9px 11px; }
  .jdb-hero { min-height: 620px; padding: 116px 0 70px; }
  .jdb-hero h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
  .jdb-hero p { font-size: 1.05rem; }
  .jdb-hero-actions { flex-direction: column; align-items: stretch; }
  .jdb-hero-actions .jdb-btn { width: 100%; white-space: normal; }
  .jdb-services-grid, .jdb-project-grid, .jdb-area-grid, .jdb-review-grid, .jdb-info-grid { grid-template-columns: 1fr; }
  .jdb-slide { padding: 28px 20px; }
  .jdb-section { padding: 64px 0; }
  .jdb-form-card, .jdb-why { padding: 24px; }
  .jdb-footer { padding-bottom: 24px; }
}
