/* Service areas — Views/Pages/ServiceAreaList.cshtml (/service-areas/) and ServiceAreaDetail.cshtml (/{slug}/).
   Everything is scoped to .sa-* classes so the theme's blog styles stay untouched. */

.sa-hero,
.sa-directory,
.sa-cta,
.sa-main,
.sa-quote,
.sa-nearby {
    /* the red of the header's GET QUOTE: --base-color is navy here (decor-store.css) */
    --sa-accent: var(--red, #dc3131);
    --sa-accent-dark: #b92323;
    --sa-ink: var(--dark-gray, #232323);
    --sa-muted: var(--medium-gray, #717580);
    --sa-line: #e6e7eb;
    --sa-soft: #f6f6f8;
    --sa-night: #1b1f27;
    --sa-radius: 16px;
    font-family: var(--alt-font, "Plus Jakarta Sans", sans-serif);
}

.sa-directory [hidden] {
    display: none !important;
}

/* ---- buttons ---- */
.sa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.sa-btn:hover {
    transform: translateY(-1px);
}

.sa-btn--primary {
    background: var(--sa-accent);
    color: #fff;
}

.sa-btn--primary:hover {
    background: var(--sa-accent-dark);
    color: #fff;
}

.sa-btn--light {
    background: #fff;
    color: var(--sa-ink);
}

.sa-btn--light:hover {
    background: var(--sa-ink);
    color: #fff;
}

.sa-btn--outline-light {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.sa-btn--outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.sa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--sa-accent);
}

.sa-link:hover {
    color: var(--sa-accent-dark);
}

/* ---- hero (both pages) ---- */
.sa-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 64px;
    color: rgba(255, 255, 255, .78);
    background:
        radial-gradient(900px 420px at 92% -10%, rgba(220, 49, 49, .38), transparent 60%),
        radial-gradient(700px 380px at -10% 120%, rgba(220, 49, 49, .16), transparent 60%),
        linear-gradient(135deg, #171a21 0%, #232833 55%, #1b1f27 100%);
}

.sa-hero::after {
    /* faint grid, a nod to floor plans */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.sa-hero > .container {
    position: relative;
    z-index: 1;
}

.sa-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .6);
}

.sa-breadcrumb a {
    color: rgba(255, 255, 255, .78);
}

.sa-breadcrumb a:hover {
    color: #fff;
}

.sa-breadcrumb i {
    font-size: 11px;
    opacity: .6;
}

.sa-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(220, 49, 49, .16);
    color: #ff8a8a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
}

.sa-eyebrow--dark {
    background: rgba(220, 49, 49, .1);
    color: var(--sa-accent);
}

.sa-hero__title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.sa-hero__lead {
    max-width: 640px;
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
}

.sa-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.sa-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-stats li {
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(6px);
}

.sa-stats b {
    display: block;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.sa-stats span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.3;
}

.sa-search {
    position: relative;
    display: block;
    max-width: 520px;
    margin: 40px 0 0;
}

.sa-search i {
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    color: var(--sa-muted);
    font-size: 18px;
    pointer-events: none;
}

.sa-search input {
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0 22px 0 54px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--sa-ink);
    font-size: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

.sa-search input:focus {
    outline: 3px solid rgba(220, 49, 49, .45);
    outline-offset: 2px;
}

/* nearest showroom card in the detail hero */
.sa-nearest {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--sa-radius);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .75);
    backdrop-filter: blur(6px);
    transition: background-color .2s ease, border-color .2s ease;
}

.sa-nearest:hover {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .75);
}

.sa-nearest__icon {
    display: grid;
    flex: 0 0 52px;
    height: 52px;
    place-items: center;
    border-radius: 14px;
    background: var(--sa-accent);
    color: #fff;
    font-size: 22px;
}

.sa-nearest__label,
.sa-nearest__name,
.sa-nearest__meta {
    display: block;
    line-height: 1.3;
}

.sa-nearest__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sa-nearest__name {
    margin: 4px 0;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
}

.sa-nearest__meta {
    font-size: 14px;
}

.sa-nearest__go {
    margin-left: auto;
    color: #fff;
    font-size: 18px;
}

.sa-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
}

.sa-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    font-size: 14px;
    line-height: 1.4;
}

.sa-highlights i {
    color: #ff8a8a;
    font-size: 22px;
    line-height: 1;
}

.sa-highlights b {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 15px;
}

/* ---- list page: state groups and cards ---- */
.sa-directory {
    padding: 72px 0 40px;
    background: #fff;
}

.sa-group + .sa-group {
    margin-top: 56px;
}

.sa-group__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.sa-group__title {
    margin: 0;
    color: var(--sa-ink);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.sa-count {
    min-width: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--sa-soft);
    color: var(--sa-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.sa-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.sa-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 22px 22px 20px;
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-radius);
    background: #fff;
    color: var(--sa-muted);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sa-card:hover {
    border-color: transparent;
    box-shadow: 0 18px 44px rgba(27, 31, 39, .12);
    color: var(--sa-muted);
    transform: translateY(-3px);
}

.sa-card__pin {
    display: grid;
    flex: 0 0 46px;
    height: 46px;
    place-items: center;
    border-radius: 12px;
    background: rgba(220, 49, 49, .1);
    color: var(--sa-accent);
    font-size: 20px;
    transition: background-color .2s ease, color .2s ease;
}

.sa-card:hover .sa-card__pin {
    background: var(--sa-accent);
    color: #fff;
}

.sa-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.sa-card__city {
    color: var(--sa-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.sa-card__state {
    margin-left: 4px;
    color: var(--sa-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
}

.sa-card__desc {
    display: -webkit-box;
    margin: 8px 0 14px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.sa-card__near {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--sa-line);
    font-size: 13px;
    line-height: 1.4;
}

.sa-card__near b {
    color: var(--sa-ink);
}

.sa-card__arrow {
    color: var(--sa-ink);
    font-size: 18px;
    opacity: .35;
    transition: opacity .2s ease, transform .2s ease;
}

.sa-card:hover .sa-card__arrow {
    color: var(--sa-accent);
    opacity: 1;
    transform: translateX(3px);
}

.sa-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 24px;
    border-radius: var(--sa-radius);
    background: var(--sa-soft);
    color: var(--sa-ink);
    font-size: 15px;
    line-height: 1.5;
}

.sa-empty i {
    color: var(--sa-accent);
    font-size: 22px;
}

.sa-empty a {
    color: var(--sa-accent);
    font-weight: 700;
}

/* ---- list page: call to action ---- */
.sa-cta {
    padding: 40px 0 90px;
    background: #fff;
}

.sa-cta__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 44px 48px;
    border-radius: 24px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%),
        linear-gradient(135deg, #dc3131 0%, #b92323 100%);
    color: rgba(255, 255, 255, .85);
}

.sa-cta__title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.sa-cta__text {
    max-width: 560px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.sa-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- detail page: article and showrooms ---- */
.sa-main {
    padding: 80px 0;
    background: #fff;
}

.sa-article {
    color: #4b4f58;
    font-family: var(--primary-font, "Inter", sans-serif);
    font-size: 17px;
    line-height: 1.8;
}

.sa-article > :first-child {
    margin-top: 0;
}

.sa-article h2,
.sa-article h3 {
    margin: 0 0 22px;
    color: var(--sa-ink);
    font-family: var(--alt-font, "Plus Jakarta Sans", sans-serif);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
}

.sa-article p {
    margin: 0 0 20px;
}

/* the posts use bold, underlined paragraphs as section titles */
.sa-article p > strong > u,
.sa-article p > u > strong {
    display: inline-block;
    margin-top: 14px;
    padding-left: 14px;
    border-left: 4px solid var(--sa-accent);
    color: var(--sa-ink);
    font-family: var(--alt-font, "Plus Jakarta Sans", sans-serif);
    font-size: 21px;
    line-height: 1.3;
    text-decoration: none;
}

/* .sa-main for weight: the theme's own link and <strong> colours are more specific than .sa-article a */
.sa-main .sa-article a,
.sa-main .sa-article a strong {
    color: var(--sa-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.sa-main .sa-article a:hover,
.sa-main .sa-article a:hover strong {
    color: var(--sa-accent-dark);
}

.sa-article ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.sa-article li {
    position: relative;
    padding: 12px 16px 12px 42px;
    border-radius: 12px;
    background: var(--sa-soft);
    color: var(--sa-ink);
    font-weight: 600;
    line-height: 1.4;
}

.sa-article li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sa-accent);
    box-shadow: 0 0 0 4px rgba(220, 49, 49, .15);
    transform: translateY(-50%);
}

.sa-aside {
    position: sticky;
    top: 120px;
}

.sa-aside__title {
    margin: 0 0 18px;
    color: var(--sa-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.sa-showroom {
    overflow: hidden;
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-radius);
    background: #fff;
    box-shadow: 0 12px 32px rgba(27, 31, 39, .06);
}

.sa-showroom + .sa-showroom {
    margin-top: 18px;
}

.sa-showroom__img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.sa-showroom__body {
    padding: 20px 22px 22px;
}

.sa-showroom__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.sa-showroom__name {
    color: var(--sa-ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.sa-pill {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(220, 49, 49, .1);
    color: var(--sa-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.sa-showroom__line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
    color: var(--sa-muted);
    font-size: 14px;
    line-height: 1.5;
}

.sa-showroom__line > i {
    margin-top: 2px;
    color: var(--sa-ink);
}

.sa-showroom__line a {
    color: var(--sa-ink);
    font-weight: 600;
}

.sa-showroom__hours p {
    margin: 0;
    line-height: 1.5;
}

.sa-showroom__hours strong {
    color: var(--sa-ink);
    font-weight: 600;
}

.sa-showroom__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.sa-showroom__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 8px;
    border: 1px solid var(--sa-line);
    border-radius: 10px;
    color: var(--sa-ink);
    font-size: 13px;
    white-space: nowrap;
    font-weight: 700;
    line-height: 1;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.sa-showroom__actions a:hover {
    border-color: var(--sa-ink);
    background: var(--sa-ink);
    color: #fff;
}

/* ---- detail page: quote ---- */
.sa-quote {
    padding: 0 0 80px;
    background: #fff;
    scroll-margin-top: 110px;
}

.sa-quote__box {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    overflow: hidden;
    border-radius: 24px;
    background: var(--sa-soft);
}

.sa-quote__intro {
    padding: 52px 48px;
    background:
        radial-gradient(500px 260px at 0% 100%, rgba(220, 49, 49, .12), transparent 60%),
        #eff0f3;
}

.sa-quote__title {
    margin: 0 0 14px;
    color: var(--sa-ink);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.sa-quote__text {
    margin: 0 0 24px;
    color: var(--sa-muted);
    font-size: 16px;
    line-height: 1.65;
}

.sa-checks {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--sa-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.sa-checks i {
    display: grid;
    flex: 0 0 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--sa-accent);
    color: #fff;
    font-size: 14px;
}

.sa-quote__form {
    padding: 44px 48px;
    background: #fff;
}

/* ---- detail page: other service areas ---- */
.sa-nearby {
    padding: 0 0 90px;
    background: #fff;
}

.sa-nearby__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.sa-nearby__title {
    margin: 0;
    color: var(--sa-ink);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
}

.sa-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sa-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--sa-line);
    border-radius: 999px;
    background: #fff;
    color: var(--sa-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.sa-chip i {
    color: var(--sa-accent);
}

.sa-chip:hover {
    border-color: var(--sa-ink);
    background: var(--sa-ink);
    color: #fff;
}

.sa-chip:hover i {
    color: #fff;
}

/* ---- responsive ---- */
@media (max-width: 1199px) {
    .sa-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .sa-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sa-aside {
        position: static;
    }

    .sa-quote__box {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .sa-hero {
        padding: 40px 0 48px;
    }

    .sa-breadcrumb {
        margin-bottom: 26px;
    }

    .sa-hero__lead {
        font-size: 16px;
    }

    .sa-stats b {
        font-size: 24px;
    }

    .sa-grid,
    .sa-highlights,
    .sa-article ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .sa-directory,
    .sa-main {
        padding: 48px 0;
    }

    .sa-cta__box,
    .sa-quote__intro,
    .sa-quote__form {
        padding: 32px 22px;
    }

    .sa-cta__title,
    .sa-quote__title {
        font-size: 26px;
    }

    .sa-hero__actions .sa-btn,
    .sa-cta__actions .sa-btn {
        justify-content: center;
        width: 100%;
    }
}
