/* ---------------------------------------------------------------------------
   Pricing page styles -- /Pricing only.

   Extracted from an inline <style> block at the top of Views/Pricing/Index.cshtml
   so the rules are cacheable instead of re-sent with every page view, and so
   they land in <head> rather than mid-body where they force a re-render.

   LINKED ONLY FROM Views/Pricing/Index.cshtml, via @section Styles. It must
   stay that way: this file redefines .card and .btn-primary -- both global
   Bootstrap class names -- with values specific to the pricing cards.
   /Covers and /Interiors define .card differently again, so linking any of
   these page sheets site-wide would break the other pages. See the comment
   above the Styles section hook in _Layout.cshtml.

   Reads the --bp-* tokens from brand.css, which _Layout links earlier in the
   head; every var() here also carries a literal hex fallback.
   --------------------------------------------------------------------------- */

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

    .pricing-header h1 {
        font-size: 2.8rem;
        font-weight: bold;
    }

    .pricing-header p {
        font-size: 1.1rem;
        color: var(--bp-slate, #6C7A94);
    }

.card {
    border: none;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    /* Named properties rather than `all`, so the colour flip below eases on
       its own curve instead of inheriting one timing for everything. */
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.35s ease,
                background-color 0.35s ease;
}

    /* Hover matches the home page's "Why Choose Us" cards exactly -- same
       navy fill, same lift, same shadow, same off-white copy. Those values
       live in css/brand.css under .services__one .single-service; this page
       cannot reuse that selector because its cards are plain .card, so the
       values are mirrored here. Keep the two in step if either changes.

       :focus-within included for the same reason it is there: keyboard
       users get the same feedback. Accent orange stays out of it -- the
       brief reserves it for the logo icon. */
    .card:hover,
    .card:focus-within {
        background-color: var(--bp-navy, #1B2A4A);
        transform: translateY(-10px);
        box-shadow: 0 22px 44px rgba(27, 42, 74, 0.30);
    }

    .card .card-title,
    .card p,
    .card .price,
    .card h5,
    .card .feature-list li {
        transition: color 0.35s ease;
    }

    .card:hover .card-title,
    .card:focus-within .card-title,
    .card:hover p,
    .card:focus-within p,
    .card:hover .price,
    .card:focus-within .price,
    .card:hover h5,
    .card:focus-within h5,
    .card:hover .feature-list li,
    .card:focus-within .feature-list li {
        color: #F2F0EA;
    }

.card-title {
    font-size: 1.8rem;
    /* Arno Pro Display is Regular-only; bold here would be synthesised. */
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--bp-navy, #1B2A4A);
}

.price {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--bp-navy, #1B2A4A);
    margin-bottom: 15px;
}

.price-description {
    font-size: 0.9rem;
    color: var(--bp-slate, #6C7A94);
    margin-bottom: 20px;
}

.card h5 {
    font-weight: 400;
    font-size: 1rem;
    margin-top: 20px;
    color: var(--bp-navy, #1B2A4A);
}

.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 15px;
}

    .feature-list li {
        margin-bottom: 10px;
        font-size: 0.9rem;
        color: var(--bp-body, #555555);
    }

/* position:relative anchors the Recommend badge; the extra top padding
   keeps the badge clear of the card title. */
.highlight-card {
    position: relative;
    padding-top: 42px;
    background-color: var(--bp-light, #F4F5F8);
    border: 2px solid var(--bp-navy, #1B2A4A);
}

/* Recommended plan marker, centred on the card's top edge. translateX
   centres it regardless of its own width, so the label can change without
   the offset needing to be recalculated. */
.recommend-badge {
    transition: background-color 0.35s ease, color 0.35s ease;
    position: absolute;
    /* Centred ON the card's top border, both axes. The badge inherits the
       theme's fixed body line-height (26px), so it is 40px tall and the old
       top:-15px left 15px above the border and 25px below -- 5px low.
       top:0 plus a -50% Y shift is self-correcting for any height.
       Both axes must stay in ONE transform: a second declaration would
       discard the X shift and break the horizontal centring. */
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bp-navy, #1B2A4A);
    color: #F2F0EA;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Inverts on hover so the badge stays readable once the card behind it
   has filled with the same navy. */
.highlight-card:hover .recommend-badge,
.highlight-card:focus-within .recommend-badge {
    background-color: #F2F0EA;
    color: var(--bp-navy, #1B2A4A);
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .card .card-title,
    .card p,
    .card .price,
    .card h5,
    .card .feature-list li,
    .recommend-badge {
        transition: none;
    }

    .card:hover,
    .card:focus-within {
        transform: none;
    }
}

.btn-primary {
    background-color: var(--bp-navy, #1B2A4A);
    border: none;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #121D35;
    }
