/*
 * Polish layer - loaded after the template CSS.
 * One card style, brand-blue CTAs, standout quote form, mobile sticky bar.
 */

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/instrument-sans-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Default theme - each page overrides these in an inline :root block */
    --brand: #0d6efd;
    --brand-rgb: 13, 110, 253;
    --brand-dark: #0a58ca;
    --brand-tint: #e7f0ff;
    --brand-on-dark: #4d94ff;
    --ink: #0b0d10;
    --muted: #4a5360;
    --line: #e2e6eb;
    --radius: 20px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .07);
    --shadow-hover: 0 2px 4px rgba(16, 24, 40, .05), 0 18px 40px rgba(16, 24, 40, .11);
}

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(var(--brand-rgb), .45);
    outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn-cta {
    background-color: var(--brand) !important;
}
.btn-cta:after {
    background-color: var(--brand-dark);
}

/* ---------- Hero ---------- */
.hero-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-tint);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.hero-text h1 {
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.06;
    letter-spacing: -.02em;
}
.hero-text .hero-sub {
    font-size: 21px;
    line-height: 32px;
    color: var(--ink);
    padding-bottom: 24px;
}
.hero-text .hero-points {
    padding-bottom: 8px;
}
.hero-text .hero-points p {
    padding-bottom: 6px;
    font-size: 17px;
    line-height: 28px;
}

/* ---------- Quote form card ---------- */
.get-a-quote {
    background-color: #fff;
    border: 1px solid var(--line);
    border-top: 6px solid var(--brand);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(var(--brand-rgb), .14), 0 2px 6px rgba(16, 24, 40, .06);
    padding-top: 44px;
}
form#contact-form h3 {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -.01em;
}
.get-a-quote h6 {
    padding-top: 6px;
    padding-bottom: 24px;
    color: var(--muted);
    font-weight: 500;
}
.get-a-quote h6 i {
    color: var(--brand);
    margin-right: 4px;
}
.get-a-quote input {
    border-color: #cfd5dc;
    transition: border-color .2s, box-shadow .2s;
}
.get-a-quote input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15);
}
.get-a-quote input::placeholder {
    color: #5b636e;
}
.group-img i {
    border-color: #cfd5dc;
    color: var(--brand);
}
.get-a-quote button[type="submit"] {
    display: block;
    width: 100%;
    padding: 20px 48px;
    font-size: 18px;
    margin-top: 10px;
}
.form-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}
.get-a-quote p.form-proof {
    font-weight: 500;
    color: var(--muted);
    padding: 0;
}
.form-proof .review-stars {
    font-size: 13px;
}

/* ---------- One card style ---------- */
.pricing-plan-style,
.review-card,
.review-summary-item,
.glance-card,
.consulting-business-text {
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}
.pricing-plan-style:hover,
.review-summary-item:hover,
.consulting-business-text:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #cdd6e1;
}
.pricing-plan-style {
    padding: 28px;
}
.pricing-plan-style h4 {
    font-weight: 700;
}
.pricing-plan-style a.btn {
    align-self: flex-start;
}
.consulting-business-text:hover {
    background-color: var(--brand-tint);
}
.consulting-business-text span {
    -webkit-text-stroke-color: var(--brand);
}

/* Truck types cards sit on black */
#truck-types .pricing-plan-style a {
    color: var(--ink);
}
#truck-types .pricing-plan-style a:hover {
    color: var(--brand);
}

/* Steps progress line */
.steps-progress {
    height: 3px;
    background: var(--line);
    border-radius: 3px;
    margin: 10px 3% 34px;
    overflow: hidden;
}
.steps-progress span {
    display: block;
    height: 100%;
    background: var(--brand);
    transform-origin: left center;
}

/* Accordion */
.accordion-item a.heading {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.content {
    border: 1px solid var(--line);
    border-top: 0;
}

/* ---------- Section headings: emphasised words in brand blue ---------- */
.heading h2 span {
    border-bottom: 0 !important;
    display: inline;
    line-height: inherit !important;
    color: var(--brand);
}
.dark-section .heading h2 span,
#truck-types .heading h2 span {
    color: var(--brand-on-dark);
}

/* ---------- Why Shielded quote ---------- */
.service-quote {
    margin-top: 10px;
    font-style: italic;
    color: #bfc7d2 !important;
    font-size: 15px;
}

/* ---------- At a glance ---------- */
.glance-section {
    padding-bottom: 0;
}
.glance-card {
    padding: 40px;
}
.glance-card h2 {
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.glance-updated {
    font-size: 14px;
    color: var(--muted);
    margin-top: 6px;
}
.glance-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 40px;
    margin-top: 30px;
}
.glance-list dt {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 6px;
}
.glance-list dd {
    margin: 0;
    font-size: 17px;
    line-height: 28px;
    color: var(--ink);
}

/* ---------- Mobile sticky bar ---------- */
.sticky-cta {
    display: none;
}
@media (max-width: 767px) {
    .sticky-cta {
        display: flex;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(8px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(16, 24, 40, .08);
        transform: translateY(110%);
        transition: transform .3s ease;
    }
    .sticky-cta.is-visible {
        transform: translateY(0);
    }
    .sticky-cta .btn {
        flex: 1;
        padding: 16px 10px;
        font-size: 15px;
    }
    #progress {
        bottom: 90px;
    }
    .glance-list {
        grid-template-columns: 1fr;
    }
    .glance-card {
        padding: 28px 22px;
    }
    .glance-card h2 {
        font-size: 30px;
        line-height: 38px;
    }
    .hero-text .hero-sub {
        font-size: 18px;
        line-height: 28px;
    }
    .hero-text p {
        width: 100%;
    }
}

/* ---------- Motion: hide hero only until GSAP takes over ---------- */
.motion-pending .hero-text,
.motion-pending .get-a-quote {
    visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
    .motion-pending .hero-text,
    .motion-pending .get-a-quote {
        visibility: visible;
    }
    .pricing-plan-style:hover,
    .review-summary-item:hover,
    .consulting-business-text:hover {
        transform: none;
    }
}

/* Form legal line */
.get-a-quote p.form-legal {
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    color: var(--muted);
    text-align: center;
    padding: 10px 0 0;
}
.get-a-quote p.form-legal a {
    color: var(--muted);
    text-decoration: underline;
}

/* Steps: equal-height cards with the icon tile aligned at the bottom */
.started .row.mt-4 > div {
    display: flex;
}
.started .consulting-business-text {
    display: flex;
    flex-direction: column;
    width: 94%;
}
.started .consulting {
    margin-top: auto;
}
.started .consulting-business-text p {
    padding-bottom: 24px;
}
.form-proof {
    flex-wrap: wrap;
    text-align: center;
}
.form-proof .review-stars {
    white-space: nowrap;
}

/* Cover option buttons can wrap on narrow cards */
.pricing-plan-style a.btn {
    white-space: normal;
    padding: 14px 26px;
    line-height: 20px;
    max-width: 100%;
}

/* Truck type lists start at the top of their card */
#truck-types .pricing-plan-style {
    justify-content: flex-start;
}

/* Optional dropdown for the "type" field (form.typeOptions) */
.get-a-quote select {
    width: 100%;
    height: 55px;
    margin-bottom: 20px;
    padding: 0 70px 0 25px;
    font-size: 16px;
    color: #000;
    background-color: #fff;
    border: 1px solid #cfd5dc;
    border-radius: 45px;
    appearance: none;
    -webkit-appearance: none;
    outline: 0;
    transition: border-color .2s, box-shadow .2s;
}
.get-a-quote select:invalid {
    color: #5b636e;
}
.get-a-quote select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15);
}
