/* ===========================================================================
   Bell Printing & Design — clean site stylesheet (light theme)
   Hand-written replacement for the legacy Adobe Muse export. No Muse artifacts.
   v2 redesign — matches Aphrodite's approved mockup. Brand: royal blue #1A2B8F,
   gold #FFD23C, white background, lavender accent.
   =========================================================================== */

/* Hide the Blazor Server reconnect overlay on screen. We supply our own empty
   #components-reconnect-modal element in _Layout.cshtml so Blazor doesn't inject its
   default full-screen "Attempting to reconnect to the server..." banner; this rule
   guarantees it stays invisible even if Blazor toggles a state class on it. The
   circuit still reconnects normally underneath — only the message is suppressed
   (matches UmbrellaWeb's behavior). */
#components-reconnect-modal {
    display: none !important;
}

:root {
    --bp-blue: #1A2B8F;
    --bp-blue-dark: #12205f;
    --bp-gold: #FFD23C;
    --bp-ink: #2b2b2b;
    --bp-gray: #6b7280;
    --bp-light: #f5f6fa;
    --bp-lav: #eef0fb;
    --bp-border: #e3e5ee;
    --bp-maxw: 1140px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--bp-ink);
    background: #ffffff;
    line-height: 1.6;
}

a { color: var(--bp-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

h1, h2, h3, .display-font {
    font-family: "Krona One", "Segoe UI", Arial, sans-serif;
    color: var(--bp-blue);
    font-weight: 400;
    line-height: 1.25;
}

/* ---------- Shared bits ---------- */
.bp-container { max-width: var(--bp-maxw); margin: 0 auto; padding: 40px 20px; }
.bp-overline {
    font-family: "Krona One", Arial, sans-serif;
    letter-spacing: 2px;
    font-size: .8rem;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.bp-overline--gold { color: var(--bp-gold); }
.bp-overline--blue { color: var(--bp-blue); }
.bp-overline.center { text-align: center; }

/* Buttons */
.bp-btn {
    display: inline-block;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 13px 26px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    font-size: .95rem;
}
.bp-btn:hover { text-decoration: none; transform: translateY(-2px); }
.bp-btn--gold { background: var(--bp-gold); color: var(--bp-blue-dark); }
.bp-btn--gold:hover { box-shadow: 0 8px 20px rgba(255,210,60,.4); }
.bp-btn--blue { background: var(--bp-blue); color: #fff; }
.bp-btn--blue:hover { background: var(--bp-blue-dark); }
.bp-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.bp-btn--ghost:hover { background: rgba(255,255,255,.12); }
.bp-btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.bp-btn-row.center { justify-content: center; }

/* ---------- Announcement bar ---------- */
.bp-announce { background: var(--bp-blue-dark); color: #dfe4ff; font-size: .82rem; }
.bp-announce-inner {
    max-width: var(--bp-maxw); margin: 0 auto; padding: 8px 20px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.bp-announce-left .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bp-gold); margin-right: 6px; }
.bp-announce-right { display: flex; gap: 18px; flex-wrap: wrap; }
.bp-announce-right a { color: #dfe4ff; }

/* ---------- Header ---------- */
.bp-header { background: #fff; border-bottom: 1px solid var(--bp-border); }
.bp-header-inner {
    max-width: var(--bp-maxw); margin: 0 auto; padding: 14px 20px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.bp-logo img { display: block; height: 72px; width: auto; }
.bp-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.bp-nav a {
    display: block; padding: 10px 16px; color: var(--bp-blue);
    font-weight: 700; letter-spacing: .3px; font-size: .9rem;
    border-bottom: 3px solid transparent;
}
.bp-nav a:hover, .bp-nav a.active {
    text-decoration: none; border-bottom-color: var(--bp-gold);
}
.bp-header-cta { padding: 10px 20px; }

/* ---------- Main ---------- */
.bp-main { min-height: 55vh; }
.bp-section { padding: 56px 0; }
.bp-section-title { text-align: center; margin: 6px 0 14px; font-size: 1.9rem; }
.bp-section-title.left { text-align: left; }
.bp-section-sub { text-align: center; color: var(--bp-gray); max-width: 640px; margin: 0 auto 40px; }

/* ---------- Hero ---------- */
.bp-hero {
    background: linear-gradient(135deg, var(--bp-blue) 0%, var(--bp-blue-dark) 100%);
    color: #fff; padding: 64px 20px 40px;
}
.bp-hero-grid {
    max-width: var(--bp-maxw); margin: 0 auto;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.bp-hero-title { color: #fff; margin: 0 0 20px; font-size: 2.5rem; line-height: 1.2; }
.bp-hero-title .hl { color: var(--bp-gold); }
.bp-hero-lead { color: #d7ddff; font-size: 1.05rem; max-width: 520px; margin: 0; }
.bp-hero-media { position: relative; }
.bp-hero-media img {
    width: 100%; border-radius: 14px; display: block;
    box-shadow: 0 20px 50px rgba(0,0,0,.35); object-fit: cover; aspect-ratio: 5 / 4;
}
.bp-hero-badge {
    position: absolute; left: 16px; bottom: 16px;
    background: rgba(18,32,95,.92); color: #fff; font-size: .8rem;
    padding: 8px 14px; border-radius: 40px; display: inline-flex; align-items: center; gap: 8px;
}
.bp-hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bp-gold); }
.bp-hero-features {
    max-width: var(--bp-maxw); margin: 40px auto 0; padding-top: 24px;
    border-top: 2px solid var(--bp-gold);
    display: flex; gap: 32px; flex-wrap: wrap; justify-content: center;
    color: #eef0fb; font-weight: 600;
}
.bp-hero-features span { white-space: nowrap; }

/* ---------- Service cards ---------- */
.bp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bp-card {
    background: #fff; border: 1px solid var(--bp-border); border-radius: 12px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.bp-card:hover { box-shadow: 0 14px 34px rgba(26,43,143,.14); transform: translateY(-4px); }
.bp-card-media { height: 150px; overflow: hidden; }
.bp-card-media img { width: 100%; height: 100%; object-fit: cover; }
.bp-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.bp-card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; background: var(--bp-lav);
    margin-bottom: 12px;
}
.bp-card-icon img { width: 26px; height: 26px; object-fit: contain; }
.bp-card h3 { font-size: 1.05rem; margin: 0 0 10px; }
.bp-card p { color: var(--bp-gray); font-size: .9rem; margin: 0 0 16px; flex: 1; }
.bp-learn {
    font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    font-size: .78rem; color: var(--bp-blue);
    border-bottom: 2px solid var(--bp-gold); padding-bottom: 2px; align-self: flex-start;
}

/* ---------- Why Bell ---------- */
.bp-why { background: var(--bp-lav); }
.bp-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding: 56px 20px; }
.bp-why-left p { color: #444; }
.bp-pill {
    display: inline-flex; align-items: center; gap: 8px; background: #fff;
    border: 1px solid var(--bp-border); border-radius: 40px; padding: 8px 16px;
    font-size: .88rem; font-weight: 600; color: var(--bp-blue); margin: 8px 0 24px;
}
.bp-pill .star { color: var(--bp-gold); }
.bp-why-photo { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); display: block; }
.bp-why-right { display: flex; flex-direction: column; gap: 18px; }
.bp-faq {
    display: flex; gap: 16px; background: #fff; border: 1px solid var(--bp-border);
    border-radius: 12px; padding: 22px;
}
.bp-faq h3 { font-size: 1.05rem; margin: 0 0 8px; }
.bp-faq p { margin: 0; color: var(--bp-gray); font-size: .92rem; }
.bp-faq-num {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
    background: var(--bp-lav); color: var(--bp-blue);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: "Krona One", Arial, sans-serif; font-size: .9rem;
}
.bp-faq--navy { background: var(--bp-blue); border-color: var(--bp-blue); }
.bp-faq--navy h3 { color: var(--bp-gold); }
.bp-faq--navy p { color: #d7ddff; }
.bp-faq-num--gold { background: var(--bp-gold); color: var(--bp-blue-dark); }

/* ---------- CTA ---------- */
.bp-cta {
    background: linear-gradient(135deg, var(--bp-blue) 0%, var(--bp-blue-dark) 100%);
    color: #fff; border-radius: 18px; padding: 48px 32px; text-align: center;
}
.bp-cta h2 { color: #fff; margin: 0 0 12px; font-size: 1.8rem; }
.bp-cta p { color: #d7ddff; margin: 0 auto; max-width: 540px; }
.bp-cta-phone { margin-top: 22px; color: #fff; }
.bp-cta-phone strong { color: var(--bp-gold); }

/* ---------- Prose / content pages ---------- */
.bp-prose { max-width: 820px; margin: 0 auto; }
.bp-prose h1 { font-size: 1.3rem; margin: 28px 0 8px; }
.bp-prose ul { padding-left: 22px; }
.bp-prose li { margin: 4px 0; }

/* ---------- Content-page hero band (Printed / Graphic / policies) ---------- */
.bp-pagehead { background: var(--bp-light); border-bottom: 1px solid var(--bp-border); padding: 40px 20px; }
.bp-pagehead-inner { max-width: var(--bp-maxw); margin: 0 auto; }
.bp-pagehead .kicker { color: var(--bp-blue); letter-spacing: 2px; font-family: "Krona One", Arial, sans-serif; margin: 0; }
.bp-pagehead h2 { margin: 12px 0 0; }

/* sample image row */
.bp-samples { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 28px; }
.bp-samples img { height: 320px; width: auto; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }

/* ---------- Carousel (Graphic Design samples) ---------- */
.bp-carousel { max-width: 640px; margin: 24px auto 0; }
.bp-carousel-stage { position: relative; background: #000; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.bp-carousel-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; transition: opacity .5s ease; }
.bp-carousel-stage img.active { opacity: 1; }
.bp-carousel-caption { text-align: center; font-weight: 600; color: var(--bp-blue); margin: 12px 0 0; min-height: 1.4em; }
.bp-carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.bp-carousel-controls button { border: 1px solid var(--bp-border); background: #fff; color: var(--bp-blue); font-size: 1.1rem; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.bp-carousel-controls button:hover { background: var(--bp-light); }

/* ---------- Footer ---------- */
.bp-footer { background: var(--bp-blue); color: #d7ddff; margin-top: 0; }
.bp-footer-inner {
    max-width: var(--bp-maxw); margin: 0 auto; padding: 48px 20px;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px;
}
.bp-footer h4 { color: #fff; font-family: "Krona One", Arial, sans-serif; font-size: .9rem; margin: 0 0 14px; }
.bp-footer a { color: var(--bp-gold); }
.bp-footer p { margin: 5px 0; font-size: .9rem; }
.bp-footer-logo { background: #fff; border-radius: 10px; padding: 10px; height: 96px; width: 96px; object-fit: contain; margin-bottom: 14px; }
.bp-footer-brand p { color: #d7ddff; }
.bp-footer-cc { max-width: 150px; margin-top: 12px; border-radius: 4px; }
.bp-copyright { text-align: center; padding: 16px; font-size: .82rem; background: var(--bp-blue-dark); color: #aab3e6; }

/* ---------- Apparel decision modal ---------- */
.bp-modal {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(18,32,95,.55);
    align-items: center; justify-content: center; padding: 20px;
}
.bp-modal.open { display: flex; }
.bp-modal-box {
    position: relative; background: #fff; border-radius: 16px;
    max-width: 480px; width: 100%; padding: 32px 28px 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35); text-align: center;
}
.bp-modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 1.8rem; line-height: 1;
    color: var(--bp-gray); cursor: pointer; padding: 4px;
}
.bp-modal-close:hover { color: var(--bp-blue); }
.bp-modal-title { margin: 6px 0 8px; font-size: 1.35rem; }
.bp-modal-sub { color: var(--bp-gray); margin: 0 0 22px; font-size: .95rem; }
.bp-modal-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bp-choice {
    display: flex; flex-direction: column; gap: 6px; text-align: left;
    padding: 18px; border: 2px solid var(--bp-border); border-radius: 12px;
    background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bp-choice:hover { border-color: var(--bp-gold); box-shadow: 0 8px 20px rgba(26,43,143,.12); transform: translateY(-2px); }
.bp-choice-title {
    font-family: "Krona One", Arial, sans-serif; color: var(--bp-blue);
    font-size: 1.05rem;
}
.bp-choice-sub { color: var(--bp-gray); font-size: .82rem; line-height: 1.4; }

/* ---------- Quote request form ---------- */
.bp-quote { max-width: 760px; }
.bp-quote-intro { color: var(--bp-gray); margin: 0 0 28px; }
.bp-quote-form { display: flex; flex-direction: column; gap: 18px; }
.bp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bp-field { display: flex; flex-direction: column; gap: 6px; }
.bp-field label { font-weight: 700; color: var(--bp-blue); font-size: .9rem; }
.bp-field .req { color: #d23c3c; }
.bp-input {
    width: 100%; padding: 11px 13px; border: 1px solid var(--bp-border);
    border-radius: 8px; font-size: 1rem; font-family: inherit; color: var(--bp-ink);
    background: #fff; transition: border-color .15s, box-shadow .15s;
}
.bp-input:focus {
    outline: none; border-color: var(--bp-blue);
    box-shadow: 0 0 0 3px rgba(26,43,143,.12);
}
textarea.bp-input { resize: vertical; }
.bp-quote-form .validation-message,
.bp-quote-error { color: #d23c3c; font-size: .85rem; margin: 0; }
.bp-quote-form .bp-btn--gold { align-self: flex-start; border: none; }
.bp-quote-success {
    background: var(--bp-lav); border: 1px solid var(--bp-border);
    border-radius: 14px; padding: 32px; text-align: center;
}
.bp-quote-success h3 { margin: 0 0 12px; }
.bp-quote-success p { color: #444; margin: 0 0 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .bp-hero-grid { grid-template-columns: 1fr; }
    .bp-hero-media { order: -1; }
    .bp-why-grid { grid-template-columns: 1fr; }
    .bp-cards { grid-template-columns: repeat(2, 1fr); }
    .bp-footer-inner { grid-template-columns: 1fr 1fr; }
    /* Header collapses to a centered stack: logo, then full-width nav, then CTA */
    .bp-header-inner { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
    .bp-logo { align-self: center; }
    .bp-nav { margin-left: 0; justify-content: center; gap: 2px; }
    .bp-header-cta { align-self: center; }
}
@media (max-width: 560px) {
    .bp-cards { grid-template-columns: 1fr; }
    .bp-hero-title { font-size: 1.9rem; }
    .bp-announce-inner { flex-direction: column; justify-content: center; text-align: center; gap: 4px; }
    .bp-announce-right { justify-content: center; gap: 10px 18px; }
    .bp-nav { flex-wrap: wrap; }
    .bp-nav a { padding: 10px 12px; font-size: .84rem; }
    .bp-footer-inner { grid-template-columns: 1fr; }
    .bp-hero-features { gap: 14px; }
    .bp-modal-choices { grid-template-columns: 1fr; }
    .bp-field-row { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Print styles — used by the /receipt page (pattern from BellPhotoStoreBlazor).
   Hide chrome (nav/app-bar/footer/buttons) and print only the receipt cleanly.
   =========================================================================== */
@media print {
    @page {
        size: auto;
        /* margin:0 also makes Chrome auto-suppress the browser-injected header/footer
           (date, URL, page number). We restore inner spacing via body padding below so
           the receipt isn't jammed against the sheet edge. */
        margin: 0;
    }

    /* Bulletproof approach: hide EVERYTHING by default, then reveal only the
       receipt (.printarea) and its descendants. This avoids having to enumerate
       every chrome element (MudBlazor app bar, nav, footer, buttons, Blazor
       error/reconnect UI, etc.) — anything not inside .printarea simply won't
       print, including a fixed-position app bar that would otherwise slip through. */
    body * {
        visibility: hidden !important;
    }

    .printarea,
    .printarea * {
        visibility: visible !important;
    }

    /* Lift the receipt to the top-left of the printed page and give it full width,
       so it isn't offset by the (now-hidden) app bar / layout containers. */
    .printarea {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 auto !important;
        /* Inner breathing room (we zeroed the @page margin to drop the browser header/footer). */
        padding: 12mm !important;
        box-sizing: border-box !important;
        color: #000 !important;
        background: #fff !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    /* Print colors (logo, bars) accurately rather than washing them out. */
    .printarea * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Neutralize page chrome so nothing tints the printed sheet. */
    html, body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Belt-and-suspenders: explicitly collapse elements opted out of print. */
    .printhide,
    #blazor-error-ui,
    #components-reconnect-modal {
        display: none !important;
    }

    /* The receipt markup (#page-wrap) is a hard-coded 800px block (ported 1:1 from
       Receipt2.aspx). That's wider than a portrait Letter/A4 page minus margins, so
       the right side (the floated Order table) was clipping off the sheet. Make the
       wrapper fluid for print so the whole receipt fits the page width. */
    .printarea #page-wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
