/*
 * BuildPublish — Project Page Styles
 * Layout and structure only — colours, fonts, and buttons inherit from the active theme.
 */

.bp-project-wrap *,
.bp-project-wrap *::before,
.bp-project-wrap *::after { box-sizing: border-box; }

/* Hero — white text always needed for photo background contrast */
.bp-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 80px 24px;
    margin-bottom: 0;
}
.bp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6)); }
.bp-hero-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.bp-hero-business { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.8); margin: 0 0 10px; }
.bp-hero-heading { font-size: clamp(26px,4vw,46px); font-weight: 700; line-height: 1.2; color: #fff; margin: 0 0 24px; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.bp-cta-phone { display: inline-block; padding: 12px 28px; font-size: 17px; font-weight: 600; text-decoration: none !important; border-radius: 4px; transition: opacity 0.2s, transform 0.15s; color: #fff !important; border: 2px solid rgba(255,255,255,0.8); background: transparent; }
.bp-cta-phone:hover { opacity: 0.85; transform: translateY(-1px); background: rgba(255,255,255,0.1); }

/* Page body — no background override, theme handles it */
.bp-page-body { padding: 0; }
.bp-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.bp-layout { padding: 48px 0; }
.bp-main { min-width: 0; }

/* Description */
.bp-description { margin-bottom: 32px; line-height: 1.75; }
.bp-description p { margin: 0 0 16px; }

/* Pills — inherit theme link colour */
.bp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.bp-pill { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; text-decoration: none; border: 1.5px solid currentColor; transition: opacity 0.15s; }
.bp-pill:hover { opacity: 0.75; text-decoration: none !important; }

/* Photos */
.bp-photo-section { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 48px; }
.bp-photo-right { direction: rtl; }
.bp-photo-right > * { direction: ltr; }
.bp-photo-img-wrap { overflow: hidden; border-radius: 4px; }
.bp-photo-img { width: 100%; height: auto; display: block; transition: transform 0.35s ease; }
.bp-photo-img:hover { transform: scale(1.02); }
.bp-photo-narrative { line-height: 1.75; }
.bp-photo-narrative p { margin: 0; }

/* FAQ */
.bp-faq { margin-bottom: 48px; }
.bp-section-heading { margin: 0 0 20px; }
.bp-faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.bp-faq-item:first-of-type { border-top: 1px solid rgba(0,0,0,0.1); }
.bp-faq-q { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: none; padding: 16px 0; font-size: inherit; font-weight: 600; color: inherit; cursor: pointer; text-align: left; gap: 16px; font-family: inherit; }
.bp-faq-q:hover { opacity: 0.75; }
.bp-faq-icon { font-size: 22px; font-weight: 300; flex-shrink: 0; transition: transform 0.25s; line-height: 1; }
.bp-faq-q[aria-expanded="true"] .bp-faq-icon { transform: rotate(45deg); }
.bp-faq-a { padding-bottom: 16px; }
.bp-faq-a[hidden] { display: none; }
.bp-faq-a p { margin: 0; line-height: 1.7; }

/* Contact form */
.bp-contact-inline { margin-bottom: 40px; padding: 32px; border: 1px solid rgba(0,0,0,0.1); border-radius: 4px; }
.bp-contact-inline .bp-section-heading { margin-bottom: 6px; }
.bp-contact-sub { margin: 0 0 20px; opacity: 0.7; }
.bp-inline-form { max-width: 640px; }
.bp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bp-field { margin-bottom: 14px; }
.bp-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.bp-field label span { opacity: 0.6; }
.bp-field input, .bp-field textarea { width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit; border: 1px solid rgba(0,0,0,0.2); border-radius: 4px; background: transparent; color: inherit; resize: vertical; transition: border-color 0.15s; }
.bp-field input:focus, .bp-field textarea:focus { outline: none; border-color: currentColor; }
.bp-submit-btn { display: inline-block; padding: 12px 28px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; border-radius: 4px; font-family: inherit; background: #333; color: #fff; transition: opacity 0.2s, transform 0.15s; }
.bp-submit-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.bp-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.bp-form-msg { margin-top: 12px; font-size: 14px; font-weight: 500; min-height: 20px; }
.bp-form-msg.success { color: #2e7d32; }
.bp-form-msg.error   { color: #c62828; }
.bp-pill-brand { border-style: dashed; opacity: 0.8; }
.bp-call-link { font-weight: 700; text-decoration: none; }

/* NAP */
.bp-nap { padding: 24px; border-left: 3px solid rgba(0,0,0,0.15); margin-bottom: 32px; }
.bp-nap-name { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.bp-nap-address, .bp-nap-phone, .bp-nap-web { margin: 4px 0; font-size: 14px; }

/* Responsive */
@media ( max-width: 900px ) {
    .bp-layout { padding: 32px 0; }
    .bp-photo-section { grid-template-columns: 1fr; }
    .bp-photo-right { direction: ltr; }
}
@media ( max-width: 600px ) {
    .bp-hero { min-height: 320px; padding: 60px 16px; }
    .bp-field-row { grid-template-columns: 1fr; }
    .bp-contact-inline { padding: 20px; }
}
