/* Balaprada Pharma — Bootstrap overrides + typography + motion (aligned with brand logo) */
:root {
    /* Logo palette: navy “Pharma”, orange “Balaprada”, forest green emblem */
    --bp-navy: #152a50;
    --bp-navy-2: #1e3a66;
    --bp-orange: #ec6a26;
    --bp-orange-2: #d45618;
    --bp-green: #2a6f4a;
    --bp-teal: var(--bp-navy);
    --bp-teal-2: var(--bp-navy-2);
    --bp-coral: var(--bp-orange);
    --bp-coral-2: var(--bp-orange-2);
    --bs-primary: var(--bp-navy);
    --bs-primary-rgb: 21, 42, 80;
    --bs-secondary: var(--bp-navy-2);
    --bs-link-color: var(--bp-navy-2);
    --bs-link-hover-color: var(--bp-orange-2);
    --bs-border-radius: 0.75rem;
    --bs-body-font-size: 1.125rem;
    --bs-body-line-height: 1.65;
}

html {
    font-size: 18px;
}

body.bp-site {
    font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.display-6 {
    font-weight: 800 !important;
}

.bp-site a.btn.btn-primary {
    color: var(--bp-navy);
}
.bp-site a.btn.btn-primary:hover {
    color: #fff;
}

.btn-primary {
    --bs-btn-bg: var(--bp-orange);
    --bs-btn-border-color: var(--bp-orange);
    --bs-btn-hover-bg: var(--bp-orange-2);
    --bs-btn-hover-border-color: var(--bp-orange-2);
    --bs-btn-active-bg: var(--bp-orange-2);
    --bs-btn-active-border-color: var(--bp-orange-2);
    --bs-btn-color: var(--bp-navy);
    --bs-btn-hover-color: #fff;
    font-weight: 700;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
}

.btn-outline-primary {
    --bs-btn-color: var(--bp-navy);
    --bs-btn-border-color: var(--bp-navy);
    --bs-btn-hover-bg: var(--bp-navy);
    --bs-btn-hover-border-color: var(--bp-navy);
    font-weight: 600;
}

.form-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bp-navy);
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.6rem 0.9rem;
    border-radius: 0.65rem;
}

.card {
    border-radius: 1rem;
    border-color: #dfe9ed;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card.card-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(21, 42, 80, 0.12) !important;
}

.catalog-product-card {
    animation: bp-fade-up 0.45s ease both;
}

@keyframes bp-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bp-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    max-width: min(360px, 92vw);
    padding: 0.9rem 1.2rem;
    background: var(--bp-navy);
    color: #fff;
    font-weight: 600;
    border-radius: 0.85rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
    animation: bp-toast-in 0.35s ease;
}

@keyframes bp-toast-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bp-toast.bp-toast-out {
    animation: bp-toast-out 0.3s ease forwards;
}

@keyframes bp-toast-out {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.pagination {
    --bs-pagination-color: var(--bp-navy);
    --bs-pagination-active-bg: var(--bp-navy);
    --bs-pagination-active-border-color: var(--bp-navy);
    font-weight: 600;
}

/* Public navbar — horizontal logo, no text stack; safe next to toggler on small screens */
.bp-site-nav .container-fluid {
    flex-wrap: nowrap;
    align-items: center;
}

.bp-navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(100%, 18rem);
    margin-right: 0.5rem;
}

@media (min-width: 576px) {
    .bp-navbar-brand {
        max-width: min(100%, 22rem);
    }
}

@media (min-width: 992px) {
    .bp-navbar-brand {
        flex: 0 1 auto;
        max-width: 20rem;
    }
}

.bp-navbar-brand__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: clamp(1.85rem, 9vw, 2.85rem);
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 399.98px) {
    .bp-navbar-brand {
        max-width: calc(100vw - 4.25rem);
    }

    .bp-navbar-brand__logo {
        height: clamp(1.55rem, 11vw, 2.05rem);
    }
}

.page-hero.page-hero--compact .breadcrumb a {
    color: inherit;
}

/* Stagger animation delay for grid children */
#productGrid .col:nth-child(1) .catalog-product-card { animation-delay: 0.02s; }
#productGrid .col:nth-child(2) .catalog-product-card { animation-delay: 0.05s; }
#productGrid .col:nth-child(3) .catalog-product-card { animation-delay: 0.08s; }
#productGrid .col:nth-child(4) .catalog-product-card { animation-delay: 0.11s; }
#productGrid .col:nth-child(5) .catalog-product-card { animation-delay: 0.14s; }
#productGrid .col:nth-child(6) .catalog-product-card { animation-delay: 0.17s; }

/* Larger hero / page titles for readability */
.bp-site .hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
    font-weight: 800 !important;
}
.bp-site .hero-lead {
    font-size: 1.2rem !important;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}
.bp-site .page-hero__title {
    font-size: clamp(1.85rem, 3.5vw, 2.65rem) !important;
    font-weight: 800 !important;
}
.bp-site .page-hero__lead {
    font-size: 1.15rem !important;
}
.bp-site .section-title {
    font-size: 2.1rem !important;
    font-weight: 800 !important;
}

/* Scroll reveal (class toggled by page-animations.js) */
.bp-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.bp-reveal.bp-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}
