/* ============================================================
   Blueprint theme — clean port of the Beaver Builder "Blueprint
   Dental Lab" design. Brand blue #009ce5, Lato, alternating
   white / light-gray section bands, card grids, dark footer.
   Colors come from CSS variables (theme config) where sensible
   so per-tenant overrides still work.
   ============================================================ */

:root {
    --bp-band: #f4f4f4;
    --bp-ink: #2a2f36;
    --bp-muted: #6b7480;
    --bp-line: #e6e9ee;
    --bp-dark: #0e2433;
}

body {
    font-family: var(--body-font, 'Lato', sans-serif);
    color: var(--bp-ink);
    margin: 0;
    line-height: 1.65;
}

h1, h2, h3, h4, h5 {
    font-family: var(--heading-font, 'Lato', sans-serif);
    color: var(--heading-color, #14202b);
    line-height: 1.18;
    margin: 0 0 .5em;
}

.bp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--primary-color, #009ce5); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.bp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--bp-line);
    box-shadow: 0 1px 12px rgba(0,0,0,.04);
}
.bp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}
.bp-logo img { max-height: 48px; width: auto; display: block; }
.bp-logo-text {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--heading-color, #14202b);
    letter-spacing: -.5px;
}
.bp-logo-text::before { color: var(--primary-color, #009ce5); }
.bp-nav { display: flex; align-items: center; gap: 28px; }

/* style the shared render_menu output */
.bp-nav .navbar-nav,
.bp-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.bp-nav .nav-link,
.bp-nav a:not(.bp-cta-btn) {
    color: var(--bp-ink);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 8px 0;
    text-decoration: none;
}
.bp-nav .nav-link:hover,
.bp-nav a:not(.bp-cta-btn):hover { color: var(--primary-color, #009ce5); }

.bp-cta-btn {
    background: var(--primary-color, #009ce5);
    color: #fff !important;
    font-weight: 800;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 12px 22px;
    border-radius: 4px;
    white-space: nowrap;
}
.bp-cta-btn:hover { background: #007ec0; text-decoration: none; }

.bp-nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.bp-nav-toggle span { display: block; width: 26px; height: 3px; background: var(--bp-ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.bp-hero {
    background: linear-gradient(135deg, rgba(0,95,150,.88) 0%, rgba(0,58,96,.82) 100%),
                url('../../img/themes/blueprint/template_a_hero.jpeg') center/cover no-repeat;
    color: #fff;
    padding: 124px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* faint tooth watermark, like the source template */
.bp-hero::before {
    content: "";
    position: absolute;
    right: -40px; bottom: -60px;
    width: 280px; height: 280px;
    background: url('../../img/themes/blueprint/01_tooth-icon_transparent-1.png') center/contain no-repeat;
    opacity: .10;
    pointer-events: none;
}
.bp-hero-inner { position: relative; z-index: 1; }
.bp-hero--image { background-size: cover; background-position: center; }
.bp-hero-inner { max-width: 820px; }
.bp-hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: .35em;
}
.bp-hero-text { font-size: 1.25rem; opacity: .95; margin-bottom: 1.8em; }
.bp-hero-text p { margin: 0; }
.bp-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.bp-btn {
    display: inline-block;
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .03em;
    padding: 14px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all .15s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.bp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.bp-btn-primary { background: var(--primary-color, #009ce5); color: #fff; }
.bp-btn-primary:hover { background: #007ec0; color: #fff; }
.bp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.bp-btn-ghost:hover { background: #fff; color: var(--primary-color, #009ce5); }
.bp-btn-light { background: #fff; color: var(--primary-color, #009ce5); }
.bp-btn-light:hover { background: #f0f0f0; color: #007ec0; }

/* ---------- Sections / bands ---------- */
.bp-section { padding: 84px 0; }
.bp-band-white { background: #fff; }
.bp-band-light { background: var(--bp-band); }
.bp-section-title {
    text-align: center;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 900;
    margin-bottom: .9em;
    position: relative;
    padding-bottom: .5em;
}
.bp-section-title::after {
    content: "";
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 64px; height: 4px;
    background: var(--primary-color, #009ce5);
    border-radius: 2px;
}
.bp-richtext { font-size: 1.05rem; color: var(--bp-muted); }
.bp-richtext--center { text-align: center; }
.bp-richtext p { margin: 0 0 1em; }

/* ---------- Card grids (services / capabilities) ---------- */
.bp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 2.5rem;
    text-align: left;
}
.bp-card {
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 10px;
    padding: 34px 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,.05);
    transition: transform .15s ease, box-shadow .15s ease;
}
.bp-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.10); }
.bp-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 8px;
    margin: -34px -28px 22px;
    width: calc(100% + 56px);
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.bp-card .bp-card-icon {
    width: 62px; height: 62px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(0,156,229,.12);
    color: var(--primary-color, #009ce5);
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.bp-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .4em; }
.bp-card p { color: var(--bp-muted); margin: 0 0 1em; font-size: .98rem; }
.bp-card a { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Team grid ---------- */
.bp-team .bp-cards { text-align: center; }
.bp-team .bp-card { padding-top: 28px; }
.bp-team img {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    border: 4px solid rgba(0,156,229,.15);
}
.bp-team h3 { margin-bottom: .1em; }
.bp-team .bp-role { color: var(--primary-color, #009ce5); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Testimonial ---------- */
.bp-quote { max-width: 760px; margin: 0 auto; text-align: center; }
.bp-quote-mark { color: var(--primary-color, #009ce5); font-size: 2.2rem; opacity: .35; }
.bp-quote blockquote {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--bp-ink);
    margin: .6em 0 .8em;
    font-style: italic;
}
.bp-quote figcaption { font-weight: 800; color: var(--bp-muted); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }

/* ---------- CTA band ---------- */
.bp-section--cta { background: linear-gradient(135deg, var(--primary-color, #009ce5), #0073b1) !important; color: #fff; text-align: center; }
.bp-cta-inner { max-width: 720px; margin: 0 auto; }
.bp-section--cta h2 { color: #fff; font-size: 2rem; font-weight: 900; }
.bp-section--cta .bp-richtext { color: rgba(255,255,255,.92); margin-bottom: 1.6em; }

/* ---------- Contact ---------- */
.bp-contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; margin-top: 2rem; text-align: left; }
.bp-contact-info { font-size: 1.05rem; }
.bp-contact-info i { color: var(--primary-color, #009ce5); width: 24px; }
.bp-contact-form { background: #fff; padding: 32px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.07); border: 1px solid var(--bp-line); }
.bp-field { margin-bottom: 16px; }
.bp-field label { display: block; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; color: var(--bp-ink); }
.bp-field input, .bp-field textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--bp-line); border-radius: 6px;
    font-family: inherit; font-size: 1rem; box-sizing: border-box;
}
.bp-field input:focus, .bp-field textarea:focus { outline: none; border-color: var(--primary-color, #009ce5); box-shadow: 0 0 0 3px rgba(0,156,229,.15); }

/* ---------- Figure ---------- */
.bp-figure { margin: 0; text-align: center; }
.bp-figure img { max-width: 100%; border-radius: 10px; }
.bp-figure figcaption { color: var(--bp-muted); font-size: .9rem; margin-top: .6em; }

/* ---------- Footer ---------- */
.bp-footer { background: var(--bp-dark); color: #c4ced8; }
.bp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 64px 24px 44px; }
.bp-footer h4 { color: #fff; font-size: 1.3rem; font-weight: 900; }
.bp-footer h5 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.bp-footer p { color: #9fb0bd; margin: 0 0 1em; }
.bp-footer ul { list-style: none; margin: 0; padding: 0; }
.bp-footer ul li { margin-bottom: .5em; }
.bp-footer a { color: #c4ced8; }
.bp-footer a:hover { color: #fff; }
.bp-footer-cta { font-weight: 800; }
.bp-social { display: flex; gap: 12px; margin-top: 8px; }
.bp-social a {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #fff;
}
.bp-social a:hover { background: var(--primary-color, #009ce5); text-decoration: none; }
.bp-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; color: #8a9aa8; text-align: center; }
.bp-footer-bottom p { margin: 0; color: #8a9aa8; }

.bp-preview-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #b45309; color: #fff; text-align: center; padding: 10px; z-index: 200; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .bp-nav-toggle { display: block; }
    .bp-nav {
        display: none;
        position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 0;
        background: #fff; padding: 12px 24px 20px;
        border-bottom: 1px solid var(--bp-line);
        box-shadow: 0 12px 24px rgba(0,0,0,.08);
    }
    .bp-header.nav-open .bp-nav { display: flex; }
    .bp-nav .navbar-nav, .bp-nav ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
    .bp-nav .nav-link, .bp-nav a:not(.bp-cta-btn) { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--bp-line); }
    .bp-cta-btn { margin-top: 14px; }
    .bp-contact-grid, .bp-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .bp-section { padding: 56px 0; }
}
