/* Live content from the dashboard (shop banner, prices, reviews, hours) plus the reviews page. */

/* ── Shop notice bar ── */
.rsa-banner {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    justify-content: center;
    padding: 8px var(--gutter);
    font-size: clamp(0.88rem, 1vw, 1rem);
    line-height: 1.4;
    text-align: center;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(193,74,9,0.6);
    background: linear-gradient(180deg, rgba(40,22,10,0.92), rgba(28,19,8,0.92));
    color: #F4E4D4;
}

.rsa-banner-tag { font-family: 'Russo One', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78em; padding: 2px 10px; border-radius: 999px; background: var(--orange-btn); color: #fff; }
.rsa-closed { background: linear-gradient(180deg, rgba(52,16,10,0.94), rgba(42,15,10,0.94)); border-bottom-color: #E0543B; }
.rsa-closed .rsa-banner-tag { background: #B2301B; }
.rsa-special { background: linear-gradient(180deg, rgba(8,44,37,0.94), rgba(8,36,31,0.94)); border-bottom-color: var(--teal); color: #D9F5EE; }
.rsa-special .rsa-banner-tag { background: var(--teal-deep); }

/* ── Prices from the dashboard ── */
#dynamic-content h2.price-section { margin-top: clamp(22px, 4vh, 40px); }
.price-badge { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--teal-deep); color: #fff; font-size: 0.7em; letter-spacing: 0.06em; }
.price-was { font-family: 'DM Sans', sans-serif; font-size: 0.7em; font-weight: 400; color: rgba(232,232,232,0.55); text-shadow: none; }
.price-footnote { margin-top: clamp(12px, 2vh, 24px); font-size: 0.88em; color: var(--text-dim) !important; }

/* ── Phone call bar ── */
.call-bar { display: none; }

@media (max-width: 700px) {
    .call-bar {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
        padding: 8px 10px;
        background: rgba(10,10,10,0.94);
        box-shadow: 0 -10px 24px -10px rgba(0,0,0,0.9);
    }
    .call-bar a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 46px;
        padding: 10px 8px;
        border-radius: var(--r-ctl);
        font: 700 0.98rem 'DM Sans', sans-serif;
        text-decoration: none;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
    }
    .call-btn { background: linear-gradient(180deg, #088C73, var(--teal-deep)); color: #fff; }
    .call-book { background: linear-gradient(180deg, #C9500F, #A23A07); color: #fff; }
}

/* ── Stars and rating ── */
.rating-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 14px 0 0 !important;
    color: var(--text);
}

.rating-strip strong { font-family: 'Russo One', sans-serif; font-size: 1.2em; color: #fff; }
#dynamic-content .rating-link { color: var(--teal-text); font-weight: 700; }

.stars {
    --pct: 0%;
    display: inline-block;
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--gold) var(--pct), #444 var(--pct));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(242,176,30,0.25));
}

.stars::before { content: "\2605\2605\2605\2605\2605"; }

/* ── Visit us (Home, Services, Service Area) ── */
.visit-us {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px clamp(18px, 3vw, 40px);
    align-items: start;
    margin-top: clamp(26px, 4.5vh, 48px);
    padding: clamp(16px, 2.6vh, 26px) clamp(16px, 2.2vw, 28px);
    border-radius: var(--r-panel);
    background: var(--steel), var(--grain);
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 3px solid var(--teal);
    box-shadow: var(--steel-edge), var(--steel-shadow);
}

.visit-us > * { grid-column: 1; }
.visit-us .hours-table, .visit-us .open-badge, .visit-us .visit-note { grid-column: 2; }
.visit-us .open-badge { grid-row: 1; justify-self: start; }
.visit-us .hours-table { grid-row: 2 / span 3; }
#dynamic-content .visit-us h2.sub { margin-top: 0; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.visit-addr { margin: 6px 0; }
.visit-note { align-self: center; }
.open-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px !important; padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: 0.86rem; color: #fff; }
.open-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-badge.is-open { background: var(--teal-deep); }
.open-badge.is-open::before { background: #9FF5DF; animation: pulse-dot 2.4s ease-in-out infinite; }
.open-badge.is-closed { background: #8a2a1a; }
.hours-table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.hours-table th, .hours-table td { text-align: left; padding: 5px 16px 5px 0; font-weight: 400; border-bottom: 1px solid rgba(255,255,255,0.07); }
.hours-table th { font-weight: 700; color: var(--text); }
.hours-table tr.today th, .hours-table tr.today td { color: var(--teal-text); }

@media (max-width: 760px) {
    .visit-us { grid-template-columns: 1fr; }
    .visit-us > *, .visit-us .hours-table, .visit-us .open-badge, .visit-us .visit-note { grid-column: 1; grid-row: auto; }
}

/* ── Service Area list ── */
.area-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 18px !important;
}

#dynamic-content .area-list li {
    margin: 0;
    display: inline-flex;
    align-items: center;
    padding: 7px 16px 7px 32px;
    border-radius: 999px;
    white-space: nowrap;
    background: var(--steel);
    border: 1px solid rgba(9,166,136,0.28);
    box-shadow: var(--steel-edge);
    color: var(--text);
}

#dynamic-content .area-list li::before {
    left: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(9,166,136,0.18);
}

/* ═══════════ Reviews page ═══════════ */

.rv-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(20px, 4vw, 56px);
    align-items: center;
}

.rv-score:empty { display: none; }

.rv-score {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    margin: 6px 0 4px;
    padding: 12px 16px;
    border-radius: var(--r-card);
    background: var(--steel), var(--grain);
    border: 1px solid rgba(242,176,30,0.28);
    box-shadow: var(--steel-edge), var(--steel-shadow);
}

.rv-score .rating-strip { margin: 0 !important; }
.rv-score .stars { font-size: 1.7rem; }

/* Repair-order card: the visit story that ends with "How did we do?" */
.rv-art {
    position: relative;
    width: min(340px, 100%);
    margin: 0 auto;
    padding: 0;
}

.rv-art .ticket {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    font-size: 0.86rem;
}

/* The earlier ticket sits behind, only its top edge showing */
.rv-art .ticket.t1 {
    position: absolute;
    top: 0;
    left: 52px;
    right: -22px;
    width: auto;
    transform: rotate(3deg);
    opacity: 0.6;
}

#dynamic-content .rv-art .ticket.t1 ol { display: none; }
.rv-art .ticket.t1 { padding-bottom: 26px; }
.rv-art .ticket.t2 { z-index: 2; transform: rotate(-1.5deg); border-top-color: var(--orange); }
.rv-art .ticket.t2 .ticket-head b { color: var(--teal-text); }

.rv-ask {
    position: relative;
    z-index: 3;
    width: fit-content;
    max-width: 92%;
    margin: 12px 0 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--r-card);
    background: linear-gradient(180deg, rgba(40,28,8,0.97), rgba(26,18,6,0.98));
    border: 1px solid rgba(242,176,30,0.4);
    box-shadow: 0 16px 34px -14px rgba(0,0,0,0.95), inset 0 1px 0 rgba(255,255,255,0.1);
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.3;
    transform: rotate(1deg);
}

.rv-ask b { display: block; font-family: 'Russo One', sans-serif; font-weight: 400; color: var(--gold); letter-spacing: 0.04em; }
.rv-ask .icon { width: 28px; height: 28px; color: var(--gold); stroke-width: 1.5; }

/* The new ticket's last step ticks in, then the question lands */
.rs-go .rv-art .t2 li:last-child { animation: rise 0.45s var(--ease) 0.9s both; }
.rs-go .rv-ask { animation: rise 0.5s var(--ease) 1.3s both; }

/* Featured quotes (shown only when the shop adds them in the dashboard) */
.rv-featured[hidden] { display: none; }

.rsa-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(10px, 1.3vw, 18px);
    margin: 0;
}

.rsa-quote {
    position: relative;
    margin: 0;
    padding: 22px 20px 16px;
    border-radius: var(--r-card);
    border-top: 2px solid var(--gold) !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rsa-quote::before {
    content: '\201C';
    position: absolute;
    top: -6px;
    right: 14px;
    font-family: 'Averia Serif Libre', Georgia, serif;
    font-size: 4.4rem;
    line-height: 1;
    color: rgba(242,176,30,0.22);
}

.rsa-quote blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text); }
.rsa-quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 8px; color: var(--teal-text); font-weight: 700; font-size: 0.9rem; }
.rsa-quote figcaption::before { content: ''; width: 16px; height: 2px; border-radius: 2px; background: var(--gold); }

/* Facebook cards */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.3vw, 18px);
    width: 100%;
}

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 18px 18px 16px;
    border-radius: var(--r-card);
    border-top: 2px solid #1877F2 !important;
    overflow: hidden;
    transition: transform 0.22s var(--ease), box-shadow 0.22s ease;
}

.review-card:not(.loaded):hover {
    transform: translateY(-2px);
    box-shadow: var(--steel-edge), 10px 22px 40px -16px rgba(0,0,0,0.95), 0 0 0 1px rgba(24,119,242,0.3);
}

.rc-head { display: flex; align-items: center; gap: 12px; }

.fb-badge {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    background: #1877F2;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 12px -4px rgba(24,119,242,0.8);
}

.fb-badge svg { width: 20px; height: 20px; fill: currentColor; }

#dynamic-content .fb-note { margin: 0; font-family: 'Russo One', sans-serif; letter-spacing: 0.06em; color: var(--text); text-transform: uppercase; font-size: 0.82rem; line-height: 1.2; }
#dynamic-content .rc-sub { margin: 2px 0 0; font-size: 0.8rem; color: var(--text-dim); line-height: 1.3; }

.rc-body {
    flex: 1;
    margin: 0 !important;
    padding: 14px 16px;
    border-radius: var(--r-ctl);
    background: rgba(0,0,0,0.28);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
    font-size: 0.92rem;
    color: var(--text-body) !important;
}

.rc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }

.fb-load {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: var(--r-ctl);
    border: 1px solid rgba(255,255,255,0.22);
    border-left: 3px solid #1877F2;
    background: linear-gradient(180deg, rgba(44,44,44,0.9), rgba(24,24,24,0.9));
    color: #F0F0F0;
    font: 700 0.9rem 'DM Sans', sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 0.18s var(--ease), border-color 0.18s ease;
}

.fb-load:hover { transform: translateY(-1px); }
.fb-load:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 2px; }
.fb-load[aria-busy="true"] { opacity: 0.75; cursor: progress; }
#dynamic-content .fb-link { font-size: 0.86rem; }

.review-card.loaded { min-height: 0; }
.review-card iframe { display: block; min-height: 260px; border-radius: var(--r-ctl); background: var(--ink-1); }

/* What every customer gets */
.rv-promise .steps { margin: 0; }

@media (max-width: 1000px) {
    .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reviews-grid .review-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .rv-hero { grid-template-columns: 1fr; }
    .rv-art { margin: 8px 0 0; }
}

@media (max-width: 620px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

/* No JavaScript: the cards cannot load posts in place, so they offer the Facebook link only */
html:not(.js) .fb-load,
html:not(.js) .rc-body { display: none; }

/* hidden must win over the card's flex and grid rules once a post is loaded */
.review-card [hidden] { display: none !important; }
.reviews-grid { align-items: start; }

/* Notice placed inside the scroll area on phones */
.rsa-banner.rsa-inline { margin: 0 0 16px; border: 1px solid rgba(193,74,9,0.6); border-radius: var(--r-card); padding: 10px 14px; }
.rsa-banner.rsa-inline.rsa-special { border-color: var(--teal); }
.rsa-banner.rsa-inline.rsa-closed { border-color: #E0543B; }
