/*
  Public / marketing site styles.
  Palette aligned with Bio-Care theme:
  - Navbar / Bootstrap primary: #2fa4e7
  - Deep info blue: #033c73
  - Buttons (.btn-primary in site.css): #2c3e50
  - Accent border: #1861ac
*/

:root {
    --pub-cyan: #2fa4e7;
    --pub-navy: #033c73;
    --pub-slate: #2c3e50;
    --pub-border: #1861ac;
    --pub-muted: #5b6b7c;
    --pub-surface: #e8f2f9;
    --pub-page-bg: #dceaf5;
    --pub-card: #ffffff;
    --pub-shadow: 0 0.5rem 1.25rem rgba(3, 60, 115, 0.08);
    --pub-radius: 0.85rem;
    --pub-content-max: 1680px; /* use most of a wide monitor; still slight side breathing room */
}

/* Full-bleed page background (not plain white) */
body.public-marketing {
    background: linear-gradient(180deg, #d4e8f6 0%, #e8f2f9 35%, #eef4f8 100%);
    background-attachment: fixed;
}

body.public-marketing > .container-fluid {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

/* Public header: flush under sticky bar (color comes from global site.css) */
body.public-marketing header .navbar.bg-primary {
    margin-bottom: 0 !important;
    border-radius: 0;
}

.public-main-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.25rem 1.5rem 2.5rem;
}

@media (min-width: 1400px) {
    .public-main-shell {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.public-site {
    color: #2c3e50;
    width: 100%;
    max-width: var(--pub-content-max);
    margin-left: auto;
    margin-right: auto;
}

.public-site img {
    max-width: 100%;
    height: auto;
}

/* —— Hero —— */
.pub-hero {
    background: linear-gradient(135deg, #033c73 0%, #0a5a9c 45%, #2fa4e7 100%);
    color: #fff;
    border-radius: var(--pub-radius);
    padding: 2.5rem 2.25rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--pub-shadow);
    overflow: hidden;
    position: relative;
}

.pub-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.pub-hero-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    margin-bottom: 0.85rem;
}

.pub-hero h1,
.pub-hero .pub-hero-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    margin-bottom: 0.75rem;
    color: #fff;
}

.pub-hero p,
.pub-hero .pub-hero-lead {
    opacity: 0.95;
    font-size: 1.05rem;
    max-width: 40rem;
    margin-bottom: 1.25rem;
}

.pub-hero .btn-light {
    font-weight: 700;
    color: #033c73;
}

.pub-hero .btn-outline-light {
    font-weight: 600;
}

.pub-hero-image {
    border-radius: var(--pub-radius);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25);
    object-fit: cover;
    width: 100%;
    max-height: 340px;
    min-height: 220px;
}

/* Slim page hero for inner pages */
.pub-page-hero {
    background: linear-gradient(135deg, #033c73 0%, #2fa4e7 100%);
    color: #fff;
    border-radius: var(--pub-radius);
    padding: 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--pub-shadow);
}

.pub-page-hero h1 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin: 0 0 0.35rem 0;
}

.pub-page-hero p {
    margin: 0;
    opacity: 0.92;
}

/* —— Sections & cards —— */
.pub-section {
    margin-bottom: 2rem;
}

.pub-section-title {
    font-weight: 800;
    color: var(--pub-navy);
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.pub-section-sub {
    color: var(--pub-muted);
    margin-bottom: 1.25rem;
}

.pub-card {
    background: var(--pub-card);
    border: 1px solid rgba(3, 60, 115, 0.08);
    border-radius: var(--pub-radius);
    box-shadow: var(--pub-shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.85rem 1.75rem rgba(3, 60, 115, 0.12);
}

.pub-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--pub-surface);
}

.pub-card-body {
    padding: 1.15rem 1.2rem 0.75rem;
    flex: 1 1 auto;
}

.pub-card-body h3,
.pub-card-body h6 {
    color: var(--pub-navy);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pub-card-body p {
    color: var(--pub-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.pub-card-footer {
    padding: 0.85rem 1.2rem 1.15rem;
    background: transparent;
    border: 0;
}

/* Benefit / feature tiles */
.pub-benefit {
    background: var(--pub-card);
    border: 1px solid rgba(3, 60, 115, 0.08);
    border-radius: var(--pub-radius);
    padding: 1.15rem 1.2rem;
    height: 100%;
    box-shadow: 0 0.25rem 0.85rem rgba(3, 60, 115, 0.05);
}

.pub-benefit-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 164, 231, 0.15);
    color: var(--pub-navy);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.pub-benefit h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pub-navy);
    margin-bottom: 0.35rem;
}

.pub-benefit p {
    font-size: 0.9rem;
    color: var(--pub-muted);
    margin: 0;
}

/* Content panels */
.pub-panel {
    background: var(--pub-card);
    border: 1px solid rgba(3, 60, 115, 0.08);
    border-radius: var(--pub-radius);
    padding: 1.5rem;
    box-shadow: var(--pub-shadow);
    margin-bottom: 1.5rem;
}

.pub-panel h2,
.pub-panel h3 {
    color: var(--pub-navy);
    font-weight: 700;
}

.pub-media {
    border-radius: var(--pub-radius);
    box-shadow: var(--pub-shadow);
    object-fit: cover;
    width: 100%;
}

.pub-badge {
    display: inline-block;
    background: rgba(47, 164, 231, 0.15);
    color: var(--pub-navy);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
}

.pub-list {
    padding-left: 1.15rem;
    margin-bottom: 1rem;
}

.pub-list li {
    margin-bottom: 0.4rem;
}

/* Contact info tiles */
.pub-contact-tile {
    background: var(--pub-surface);
    border: 1px solid rgba(3, 60, 115, 0.08);
    border-radius: var(--pub-radius);
    padding: 1.25rem 1rem;
    text-align: center;
    height: 100%;
}

.pub-contact-tile img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.65rem;
}

.pub-contact-tile p,
.pub-contact-tile strong {
    margin: 0;
    font-size: 0.95rem;
}

/* Forms */
.pub-form-card {
    background: #fff;
    border: 1px solid rgba(3, 60, 115, 0.1);
    border-radius: var(--pub-radius);
    box-shadow: var(--pub-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pub-form-card h2 {
    color: var(--pub-navy);
    font-weight: 800;
    font-size: 1.45rem;
}

.pub-program-option {
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(3, 60, 115, 0.1);
    border-radius: 0.5rem;
    background: #f8fbfd;
}

.pub-program-option:hover {
    border-color: rgba(47, 164, 231, 0.35);
    background: #f0f8fd;
}

.pub-program-option .form-check-label {
    color: var(--pub-navy);
}

/* FAQ accordion polish */
.public-site .accordion .card {
    border: 1px solid rgba(3, 60, 115, 0.1);
    border-radius: 0.65rem !important;
    margin-bottom: 0.65rem;
    overflow: hidden;
    box-shadow: 0 0.15rem 0.5rem rgba(3, 60, 115, 0.04);
}

.public-site .accordion .card-header {
    background: #f8fbfd;
    border-bottom: 1px solid rgba(3, 60, 115, 0.08);
    padding: 0.35rem 0.75rem;
}

.public-site .accordion .btn-link {
    color: var(--pub-navy);
    font-weight: 600;
    text-align: left;
    white-space: normal;
    text-decoration: none;
    width: 100%;
}

.public-site .accordion .btn-link:hover {
    color: var(--pub-cyan);
    text-decoration: none;
}

/* Testimonials */
.public-site #testimonial {
    background: linear-gradient(135deg, #eef6fc 0%, #f8fafc 100%) !important;
    border-radius: var(--pub-radius);
    padding: 1.5rem 0 !important;
    margin-bottom: 1.5rem;
}

.public-site #testimonial h3 {
    color: var(--pub-navy);
    font-weight: 800;
}

.public-site .carousel-content {
    text-align: center;
    padding: 1rem 0.5rem 2rem;
}

.public-site .client-img img {
    max-height: 64px;
    width: auto;
    margin-bottom: 0.75rem;
}

/* Resources row */
.pub-resources {
    background: var(--pub-surface);
    border-radius: var(--pub-radius);
    padding: 1.5rem 1rem;
    border: 1px solid rgba(3, 60, 115, 0.06);
}

.pub-resources a {
    display: inline-block;
    padding: 0.5rem;
    opacity: 0.9;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.pub-resources a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.pub-resources img {
    max-height: 52px;
    width: auto;
}

/* CTA band */
.pub-cta {
    background: linear-gradient(135deg, #033c73 0%, #2fa4e7 100%);
    color: #fff;
    border-radius: var(--pub-radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    margin: 2rem 0 0.5rem;
}

.pub-cta h2 {
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.pub-cta p {
    opacity: 0.92;
    margin-bottom: 1rem;
}

.pub-cta .btn-light {
    font-weight: 700;
    color: #033c73;
}

/* —— Cambium product preview (replaces Power BI) —— */
.cms-preview {
    border: 1px solid rgba(3, 60, 115, 0.12);
    border-radius: var(--pub-radius);
    overflow: hidden;
    background: #f8fbfd;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.cms-preview-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(90deg, #033c73, #2fa4e7);
    color: #fff;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.cms-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.cms-preview-title {
    margin-left: 0.5rem;
    opacity: 0.95;
}

.cms-preview-body {
    padding: 1.15rem 1.15rem 1.25rem;
}

.cms-stat {
    background: #fff;
    border: 1px solid rgba(3, 60, 115, 0.08);
    border-radius: 0.65rem;
    padding: 0.9rem 1rem;
    height: 100%;
}

.cms-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pub-muted);
}

.cms-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--pub-navy);
    line-height: 1.15;
    margin: 0.2rem 0;
}

.cms-stat-value.text-success {
    color: #73a839 !important;
}

.cms-stat-value.text-warning {
    color: #dd5600 !important;
}

.cms-stat-note {
    font-size: 0.8rem;
    color: var(--pub-muted);
}

.cms-preview-table {
    background: #fff;
    border: 1px solid rgba(3, 60, 115, 0.08);
    border-radius: 0.65rem;
    overflow: hidden;
}

.cms-preview-row {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1.2fr;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(3, 60, 115, 0.06);
    align-items: center;
}

.cms-preview-row.cms-preview-head {
    border-top: 0;
    background: rgba(47, 164, 231, 0.1);
    font-weight: 700;
    color: var(--pub-navy);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 575.98px) {
    .cms-preview-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem 0.75rem;
    }

    .cms-preview-row.cms-preview-head {
        display: none;
    }
}

/* Footer sits better on tinted background */
body.public-marketing .footer {
    position: relative;
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .pub-hero {
        padding: 1.5rem 1.15rem;
    }

    .public-main-shell {
        padding: 0.85rem 0.85rem 2rem;
    }
}
