/* ============================================================================
 * site-overrides.css
 * Additions on top of the verbatim live-site site.css.
 * The live CSS already handles: .navbar-custom, .mjs-body, .bg-custom*,
 * .parallax1-3, #newsTickerCarousel, .fa-* social brand colors, .text-custom.
 * Anything below is new for the ASP.NET rewrite.
 * ============================================================================ */

/* Bootstrap 5 .card forces its own color, breaking the text-white inheritance
   the live BS4 site relied on. Re-establish white text inside cards that sit
   on dark backgrounds. */
.card.bg-custom,
.card.bg-custom2,
.card.bg-custom3,
.card.bg-custom .card-header,
.card.bg-custom .card-body,
.card.bg-custom2 .card-header,
.card.bg-custom2 .card-body,
.card.bg-custom3 .card-header,
.card.bg-custom3 .card-body {
    color: #fff;
    background-color: transparent;
}
.card.bg-custom .card-header,
.card.bg-custom2 .card-header,
.card.bg-custom3 .card-header {
    border-bottom-color: rgba(255, 255, 255, .2);
}
.card.bg-custom a,
.card.bg-custom2 a,
.card.bg-custom3 a {
    color: #9ec5fe;
}

/* Live HTML uses .list-display for bullet lists inside requirements/sendgrid
   cards. The live class is defined elsewhere; mirror a minimal version. */
.list-display {
    padding-left: 1.5rem;
}
.list-display li { margin-bottom: .35rem; }


/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.site-footer .footer-copyright {
    color: #fff;
    font-size: .95rem;
}

.site-footer .footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
    opacity: 1;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.site-footer .footer-privacy {
    color: rgba(255, 255, 255, .7);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background-color: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    text-decoration: none;
    font-size: 1rem;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.footer-social a:hover,
.footer-social a:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, .22);
    border-color: #fff;
    transform: translateY(-2px);
}

:root {
    --ds-navy: #0C3C60;
    --ds-red: #FF0000;
    --ds-blue-card: rgba(57, 115, 155, .9);
    --ds-blue-card-light: rgba(112, 146, 190, .5);
    --ds-text-custom: rgb(76, 129, 165);
}


/* Live h1/h2/h3 reset (small sizes) is too compact for hero/section headers — restore something usable */
.page-hero h1, .section-band h2, .product-section h2 { font-size: 2rem; }
.page-hero h1 { font-size: 2.4rem; }

/* ===== Hero / Carousel (front page) ===== */
#heroCarousel .carousel-item {
    height: 70vh;
    min-height: 360px;
}
#heroCarousel .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
#heroCarousel .carousel-caption {
    background: rgba(12, 60, 96, .55);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    bottom: 15%;
}
#heroCarousel .carousel-caption h2 { font-weight: 700; }

/* ===== Feature tiles (Products / Demo / Support cards on home) ===== */
.feature-tile {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    overflow: hidden;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.feature-tile img { width: 100%; height: 220px; object-fit: cover; }
.feature-tile .tile-body { padding: 1.25rem 1.5rem 1.75rem; }
.feature-tile h3 { color: var(--ds-navy); font-weight: 700; }

/* ===== Section bands ===== */
.section-band { padding: 4rem 0; }
.section-band.light { background: #f3f6f9; }
.section-band.dark  { background: var(--ds-navy); color: #fff; }
.section-band.dark h1,
.section-band.dark h2,
.section-band.dark h3 { color: #fff; }

/* ===== News-card variation used on home (we render Bootstrap cards inside the live carousel) ===== */
#newsTickerCarousel .news-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    min-height: 320px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
#newsTickerCarousel .news-card h3 { color: var(--ds-navy); }
#newsTickerCarousel .carousel-control-prev-icon,
#newsTickerCarousel .carousel-control-next-icon {
    background-color: var(--ds-navy);
    border-radius: 50%;
    padding: 1.25rem;
}

/* ===== Contact / Demo forms ===== */
.contact-form .form-control,
.contact-form .form-select {
    border-radius: 4px;
    padding: .65rem .85rem;
}
.contact-form label { font-weight: 600; color: var(--ds-navy); }
.btn-send {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    padding: .55rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
}
.btn-send:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

/* ===== Page hero (interior pages) ===== */
.page-hero {
    color: #fff;
    padding: 5rem 0 3rem;
    text-align: center;
    background-color: var(--ds-navy);
    background-blend-mode: multiply;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.page-hero h1 { font-weight: 700; letter-spacing: 1px; color: #fff; }
.page-hero .lead { color: #cfd8e0; }

/* ===== Section title bar ===== */
.section-title-bar {
    display: inline-block;
    border-bottom: 3px solid var(--ds-red);
    padding-bottom: .25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--ds-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--ds-navy);
    color: #cfd8e0;
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}
.site-footer h6 { color: #fff; }
.site-footer a { color: #cfd8e0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer address { line-height: 1.5; }

/* ===== Product page sections ===== */
.product-section { padding: 3.5rem 0; }
.product-section:nth-child(even) { background: #f3f6f9; }
.product-section h2 { color: var(--ds-navy); font-weight: 700; }
.product-section ul.feature-list { list-style: none; padding-left: 0; }
.product-section ul.feature-list li {
    padding: .35rem 0 .35rem 1.75rem;
    position: relative;
}
.product-section ul.feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--ds-red);
    position: absolute;
    left: 0;
    top: .45rem;
}

/* ===== Mobile tweaks ===== */
@media (max-width: 768px) {
    .mjs-body { padding-top: 75px; }
    #heroCarousel .carousel-item { height: 50vh; }
}

/* ===== Read more / less toggle on news cards =====
   The dual-span trick: Bootstrap's collapse plugin sets aria-expanded
   on the toggle button; we swap which label is visible based on that. */
.read-more-btn .less { display: none; }
.read-more-btn[aria-expanded="true"] .more { display: none; }
.read-more-btn[aria-expanded="true"] .less { display: inline; }
