/* ==========================================================
   Jayco Maintenance Group — site stylesheet
   Calm, light theme. Brand wine red used as an accent only.
   Palette derived from the Jayco logo.
   ========================================================== */
:root {
    --brand: #7B0E21;        /* logo burgundy — buttons, links, accents */
    --brand-dark: #5E0B19;   /* hover state */
    --accent: #A63F53;       /* metallic rose — small highlights only (AA on white) */
    --ink: #231A1E;          /* headings */
    --body: #554B4F;         /* body text */
    --muted: #6E6266;        /* secondary text (AA on white) */
    --bg: #FFFFFF;
    --bg-soft: #F8F5F4;      /* soft warm panels */
    --line: #E9E2E0;         /* hairline borders */
    --footer-bg: #201619;    /* warm charcoal */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(35, 26, 30, .06), 0 4px 14px rgba(35, 26, 30, .05);
    --shadow-md: 0 10px 30px rgba(35, 26, 30, .10);
    /* metallic red, matched to the logo's brushed sheen */
    --metal: linear-gradient(165deg, #B62742 0%, #911329 32%, #7B0E21 58%, #5E0B19 100%);
    --metal-bright: linear-gradient(165deg, #C43152 0%, #A0132C 35%, #8A0F26 60%, #6A0C1D 100%);
    --metal-sheen: inset 0 1px 0 rgba(255, 255, 255, .28);
}


/*** Base ***/
body {
    background: var(--bg);
    color: var(--body);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--ink);
}

p {
    color: var(--body);
}

a {
    color: var(--brand);
}

a:hover {
    color: var(--brand-dark);
}

::selection {
    background: var(--brand);
    color: #FFFFFF;
}

a:focus-visible,
button:focus-visible,
.form-control:focus-visible {
    outline: 3px solid rgba(123, 14, 33, .35);
    outline-offset: 2px;
}


/*** Bootstrap color utility overrides (build ships coral/cyan) ***/
.text-primary {
    color: var(--brand) !important;
}

.text-secondary {
    color: var(--brand) !important;
}

.bg-primary {
    background: var(--metal) !important;
    box-shadow: var(--metal-sheen);
}

.bg-secondary {
    background: linear-gradient(165deg, #8E1128 0%, #6A0C1D 45%, #4E0311 100%) !important;
    box-shadow: var(--metal-sheen);
}

.border-primary {
    border-color: var(--brand) !important;
}

.bg-light {
    background-color: var(--bg-soft) !important;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.bg-dark {
    background-color: var(--footer-bg) !important;
}

.btn-primary {
    background: var(--metal);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--metal-sheen), 0 2px 8px rgba(94, 11, 25, .25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--metal-bright);
    box-shadow: var(--metal-sheen), 0 4px 14px rgba(94, 11, 25, .35);
}

.btn {
    font-weight: 600;
    transition: .3s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-outline-light {
    border-radius: var(--radius-sm);
}

.btn-lg-square {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.form-control {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(123, 14, 33, .08);
}

.form-floating > label {
    color: var(--muted);
}


/*** Section eyebrows ***/
h6.text-secondary.text-uppercase {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
    /* failsafe: never trap visitors behind the loader if JS is blocked */
    animation: spinner-failsafe .5s ease 3.5s forwards;
}

@keyframes spinner-failsafe {
    to {
        opacity: 0;
        visibility: hidden;
    }
}


/*** Back to top ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    border-radius: 50% !important;
}

.back-to-top.show {
    display: flex;
}


/*** Navbar ***/
.navbar.bg-white {
    border-bottom: 1px solid var(--line);
}

.navbar.border-primary {
    border-image: linear-gradient(90deg, #B62742, #7B0E21 50%, #4E0311) 1 !important;
}

.navbar.shadow {
    box-shadow: 0 4px 18px rgba(35, 26, 30, .06) !important;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 30px;
    padding: 25px 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
    transition: color .25s, padding .3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--brand);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid var(--line);
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
    transition: height .3s ease;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar h4 {
    color: var(--brand);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: 16px;
        left: 50%;
        background: linear-gradient(90deg, #B62742, #7B0E21);
        transition: .3s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar.navbar-shrink .navbar-nav .nav-link {
        padding: 17px 0;
    }

    .navbar.navbar-shrink .navbar-nav .nav-link::before {
        bottom: 10px;
    }
}

.navbar.navbar-shrink .navbar-brand {
    height: 60px;
}


/*** Hero (homepage) ***/
.hero-dark {
    position: relative;
    padding: 80px 0 70px;
    text-align: center;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.hero-dark .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-dark h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 auto;
    max-width: 16em;
}

.hero-dark .hero-sub {
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 560px;
    margin: 20px auto 30px;
}

.hero-dark .tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-dark .tag {
    color: var(--body);
    font-size: .88rem;
    font-weight: 500;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 50px;
}

.hero-dark .tag i {
    color: var(--brand);
    margin-right: 7px;
}

.hero-dark .screen {
    max-width: 940px;
    margin: 50px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-dark .screen video {
    width: 100%;
    display: block;
}

@media (max-width: 767.98px) {
    .hero-dark {
        padding: 50px 0 44px;
    }
}


/*** Page headers (inner-page banners) ***/
.page-header {
    background: linear-gradient(rgba(24, 16, 18, .55), rgba(24, 16, 18, .55)), url(../img/carousel-1.jpg?v=4) center center no-repeat;
    background-size: cover;
}

.page-header h1,
.page-header .h1 {
    color: #FFFFFF;
}

.plumbing-header {
    background: linear-gradient(rgba(24, 16, 18, .55), rgba(24, 16, 18, .55)), url(../img/cover1.jpg?v=2) left center no-repeat;
    height: 50vh !important;
}

.electrical-header {
    background: linear-gradient(rgba(24, 16, 18, .55), rgba(24, 16, 18, .55)), url(../img/cover2.jpg?v=2) left center no-repeat;
    height: 50vh !important;
}

.appliance-header {
    background: linear-gradient(rgba(24, 16, 18, .55), rgba(24, 16, 18, .55)), url(../img/cover3.jpg?v=2) left center no-repeat;
    height: 50vh !important;
}

.hvac-header {
    background: linear-gradient(rgba(24, 16, 18, .55), rgba(24, 16, 18, .55)), url(../img/cover4.jpg?v=2) left center no-repeat;
    height: 50vh !important;
}

.general-handyman-header {
    background: linear-gradient(rgba(24, 16, 18, .55), rgba(24, 16, 18, .55)), url(../img/cover5.jpg?v=2) left center no-repeat;
    height: 50vh !important;
}

.locksmith-header {
    background: linear-gradient(rgba(24, 16, 18, .55), rgba(24, 16, 18, .55)), url(../img/cover6.jpg?v=2) left center no-repeat;
    height: 50vh !important;
}

.services-header {
    background: linear-gradient(rgba(24, 16, 18, .55), rgba(24, 16, 18, .55)), url(../img/cover7.jpg?v=4) center center no-repeat;
    height: 50vh !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .6);
}

.page-header .breadcrumb .text-white:hover {
    color: var(--accent) !important;
}


/*** About / Feature layout (template column alignment) ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }

    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }

    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.about .position-relative,
.feature .position-relative {
    border-radius: var(--radius);
    overflow: hidden;
}


/*** Service cards ***/
.service-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-item .overflow-hidden {
    border-radius: var(--radius-sm);
}

.service-item img {
    transition: transform .4s ease;
}

.service-item:hover img {
    transform: scale(1.04);
}

.service-item a.btn-slide {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: 0;
}

.service-item a.btn-slide i,
.service-item a.btn-slide span {
    position: relative;
    height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #FFFFFF;
    background: var(--brand);
    border-radius: 0 35px 35px 0;
    transition: .4s;
    z-index: 2;
}

.service-item a.btn-slide span {
    padding-left: 0;
    left: -100%;
    z-index: 1;
}

.service-item:hover a.btn-slide i {
    border-radius: 0;
}

.service-item:hover a.btn-slide span {
    left: 0;
}

.service-item a.btn-slide:hover i,
.service-item a.btn-slide:hover span {
    background: var(--brand-dark);
}


/*** Testimonials ***/
.testimonial-card {
    position: relative;
    height: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-card .t-quote {
    position: absolute;
    top: 18px;
    right: 26px;
    font-size: 2rem;
    color: rgba(123, 14, 33, .12);
}

.testimonial-card .t-stars {
    display: flex;
    gap: 4px;
    color: #C9A227;
    font-size: .85rem;
    margin-bottom: 14px;
}

.testimonial-card p {
    font-size: .98rem;
    margin-bottom: 22px;
}

.t-person {
    display: flex;
    align-items: center;
    gap: 14px;
}

.t-person img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.t-person strong {
    display: block;
    color: var(--ink);
}

.t-person small {
    color: var(--muted);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact-page {
        max-width: 100% !important;
    }

    .contact-page .contact-form {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-page .contact-form {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-page .contact-form {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.contact-page iframe {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

@media (max-width: 767.98px) {
    .contact-page .col-md-6[style*="min-height"] {
        min-height: 360px !important;
    }
}


/*** Terms ***/
.section-title {
    color: var(--brand);
    margin-top: 2rem;
}


/*** Footer ***/
.footer {
    background: url(../img/footer-bg.jpg) center center no-repeat;
    background-size: cover;
}

.footer h4 {
    color: #FFFFFF;
}

.footer p {
    color: rgba(255, 255, 255, .7);
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: #FFFFFF;
    border-color: var(--accent);
    background: rgba(193, 82, 103, .18);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
    padding-left: 5px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, .6);
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a {
    color: rgba(255, 255, 255, .8);
}

.footer .copyright a:hover {
    color: var(--accent);
}


/*** Hide the default video controls ***/
video::-webkit-media-controls {
    display: none;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-webkit-media-controls-play-button {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
}


/*** Reduced motion ***/
@media (prefers-reduced-motion: reduce) {
    .btn,
    .service-item,
    .service-item img,
    .testimonial-card,
    .navbar-light .navbar-brand,
    .navbar-light .navbar-nav .nav-link {
        transition: none;
    }

    .service-item:hover,
    .service-item:hover img,
    .testimonial-card:hover {
        transform: none;
    }
}

/*** Careers ***/
.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
    box-shadow: var(--shadow-sm);
}

.job-card h5 {
    margin-bottom: 6px;
}

.job-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: .88rem;
    margin-right: 16px;
}

.job-meta i {
    color: var(--brand);
}

/*** Forms: honeypot + status messages ***/
.jayco-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    min-height: 1.4em;
    font-weight: 600;
}

.form-status.ok {
    color: #1a7f37;
}

.form-status.err {
    color: var(--brand);
}

/*** Stat columns (About) — bars rise as numbers count ***/
.stat-chart {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    justify-content: center;
}

.stat-col {
    text-align: center;
    min-width: 86px;
}

.stat-col .ic {
    color: var(--brand);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.stat-col h2 {
    font-variant-numeric: tabular-nums;
    margin-bottom: 10px;
}

.stat-col .bar {
    width: 72px;
    margin: 0 auto;
    border-radius: 10px 10px 4px 4px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.stat-col .bar .fill {
    width: 100%;
    height: 100%;
    background: var(--metal);
    box-shadow: var(--metal-sheen);
    transform: scaleY(0);
    transform-origin: bottom;
}

.stat-col.in .bar .fill {
    transform: scaleY(1);
    transition: transform 1.9s cubic-bezier(.22, 1, .36, 1);
}

.stat-col p {
    margin: 10px 0 0;
    font-size: .9rem;
    color: var(--muted);
}

@media (max-width: 575.98px) {
    .stat-chart {
        gap: 16px;
    }

    .stat-col .bar {
        width: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stat-col .bar .fill,
    .stat-col.in .bar .fill {
        transform: scaleY(1);
        transition: none;
    }
}

/*** Careers: trades orbiting the Apply Now hub ***/
html {
    scroll-behavior: smooth;
}

.trade-orbit-wrap {
    display: flex;
    justify-content: center;
    padding: 30px 0 10px;
}

.trade-orbit {
    position: relative;
    width: 380px;
    height: 380px;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: var(--metal);
    box-shadow: var(--metal-sheen), 0 10px 30px rgba(94, 11, 25, .35);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.25;
    text-align: center;
    display: grid;
    place-items: center;
    z-index: 2;
    transition: transform .25s ease, box-shadow .25s ease;
}

.orbit-center:hover {
    color: #FFFFFF;
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: var(--metal-sheen), 0 14px 38px rgba(94, 11, 25, .45);
}

.orbit-ring {
    position: absolute;
    inset: 0;
    border: 1px dashed var(--line);
    border-radius: 50%;
    animation: orbit-spin 28s linear infinite;
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    transform: rotate(var(--a)) translateX(190px);
}

.orbit-item .n1 {
    display: block;
    transform: rotate(calc(-1 * var(--a)));
}

.orbit-item .n2 {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    color: var(--brand);
    font-size: 1.2rem;
    display: grid;
    place-items: center;
    animation: orbit-spin 28s linear infinite reverse;
}

@keyframes orbit-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 460px) {
    .trade-orbit {
        width: 280px;
        height: 280px;
    }

    .orbit-item {
        transform: rotate(var(--a)) translateX(140px);
    }

    .orbit-item .n2 {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .orbit-center {
        width: 108px;
        height: 108px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .orbit-ring,
    .orbit-item .n2 {
        animation: none;
    }
}


/*** File inputs (career resume) ***/
.file-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}

input[type="file"].form-control {
    padding: 10px 12px;
    line-height: 1.5;
}

input[type="file"].form-control::file-selector-button {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 14px;
    margin-right: 12px;
    color: var(--ink);
    font-weight: 600;
    transition: background .2s;
}

input[type="file"].form-control::file-selector-button:hover {
    background: var(--line);
}

/*** Jay — on-site assistant widget ***/
#jay {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1000;
    font-size: 15px;
}

.jay-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    background: var(--metal);
    box-shadow: var(--metal-sheen), 0 8px 24px rgba(94, 11, 25, .35);
    color: #FFFFFF;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 50px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.jay-bubble i {
    font-size: 1.2rem;
}

.jay-bubble:hover {
    transform: translateY(-2px);
    box-shadow: var(--metal-sheen), 0 12px 30px rgba(94, 11, 25, .45);
}

#jay.open .jay-bubble {
    display: none;
}

.jay-panel {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 360px;
    max-width: calc(100vw - 48px);
    height: 480px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(35, 26, 30, .25);
    overflow: hidden;
}

.jay-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--metal);
    box-shadow: var(--metal-sheen);
    color: #FFFFFF;
}

.jay-head img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #FFFFFF;
    padding: 3px;
}

.jay-head strong {
    display: block;
    line-height: 1.1;
}

.jay-head small {
    color: rgba(255, 255, 255, .75);
    font-size: .78rem;
}

.jay-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 8px;
}

.jay-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-soft);
}

.jay-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    line-height: 1.5;
    font-size: .92rem;
}

.jay-msg.bot {
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--body);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.jay-msg.bot a {
    font-weight: 600;
}

.jay-msg.user {
    background: var(--brand);
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.jay-typing span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--muted);
    animation: jay-blink 1s infinite;
}

.jay-typing span:nth-child(2) { animation-delay: .2s; }
.jay-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes jay-blink {
    0%, 80%, 100% { opacity: .25; }
    40% { opacity: 1; }
}

.jay-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.jay-chips button {
    border: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--brand);
    font-size: .8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s;
}

.jay-chips button:hover {
    background: var(--line);
}

.jay-form {
    display: flex;
    gap: 8px;
    padding: 10px 14px 14px;
    background: var(--bg);
}

.jay-form input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 10px 16px;
    font-size: .92rem;
    color: var(--ink);
}

.jay-form input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(123, 14, 33, .08);
}

.jay-form button {
    width: 42px;
    height: 42px;
    flex: none;
    border: none;
    border-radius: 50%;
    background: var(--metal);
    box-shadow: var(--metal-sheen);
    color: #FFFFFF;
    cursor: pointer;
}

@media (max-width: 460px) {
    #jay {
        left: 14px;
        bottom: 14px;
    }

    .jay-panel {
        max-width: calc(100vw - 28px);
        height: 68vh;
    }

    .jay-hi {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jay-bubble {
        transition: none;
    }

    .jay-typing span {
        animation: none;
    }
}

/*** Legal pages (privacy / terms) ***/
.legal-page {
    max-width: 820px;
}

.legal-page h2 {
    color: var(--ink);
}

.legal-page ul {
    padding-left: 1.25rem;
}

.legal-page ul li {
    margin-bottom: .5rem;
}

/*** How-it-works steps ***/
.step-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.step-num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--metal);
    border-radius: 50%;
    box-shadow: var(--metal-sheen);
}

/*** FAQ accordion ***/
.accordion-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-weight: 600;
    color: var(--ink);
    background: var(--bg);
}

.accordion-button:not(.collapsed) {
    color: var(--brand);
    background: var(--bg-soft);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(123, 14, 33, .08);
}

.accordion-button:not(.collapsed)::after {
    filter: grayscale(1) brightness(.4);
}

/*** Clickable contact details ***/
.contact-link {
    color: inherit;
    text-decoration: none;
}

.contact-link:hover {
    color: inherit;
    text-decoration: underline;
}

.btn-outline-primary {
    color: var(--brand);
    border: 2px solid var(--brand);
    border-radius: var(--radius-sm);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #FFFFFF;
    background: var(--metal);
    border-color: var(--brand);
    box-shadow: var(--metal-sheen);
}

/*** Dispatch contact tiles ***/
.contact-tiles {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-tile {
    flex: 0 1 360px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 28px 24px;
    text-align: center;
    text-decoration: none;
    transition: .3s;
}

.contact-tile:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contact-tile .ic {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #FFFFFF;
    background: var(--metal);
    border-radius: 50%;
    box-shadow: var(--metal-sheen);
}

.contact-tile small {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contact-tile strong {
    color: var(--ink);
    font-size: 1.05rem;
    word-break: break-word;
}

#quote {
    scroll-margin-top: 90px;
}
