:root {
    --facade-brick: #b95e42;
    --facade-sand: #f4dfbd;
    --facade-green: #1d6b4d;
    --facade-ink-soft: #2f3a34;
}

body {
    color: var(--ds-ink);
}

.site-header {
    z-index: 50;
}

.nav-burger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--ds-line) 72%, transparent);
    border-radius: var(--ds-radius);
    background: transparent;
    cursor: pointer;
    color: var(--ds-ink);
}

.nav-burger-icon,
.nav-burger-icon::before,
.nav-burger-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: transform .18s ease, opacity .18s ease;
}

.nav-burger-icon::before,
.nav-burger-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-burger-icon::before { top: -5px; }
.nav-burger-icon::after  { top:  5px; }

.nav-burger[aria-expanded="true"] .nav-burger-icon {
    background: transparent;
}

.nav-burger[aria-expanded="true"] .nav-burger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-burger[aria-expanded="true"] .nav-burger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

.brand-mark {
    position: relative;
    background: linear-gradient(90deg, var(--facade-brick) 0 45%, var(--facade-sand) 45% 100%);
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 7px 6px auto;
    height: 6px;
    border-top: 3px solid var(--ds-primary);
    transform: skewX(-28deg);
}

@media (min-width: 981px) {
    .header-inner {
        min-height: 52px;
        gap: 14px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 28px;
        height: 28px;
        border-width: 3px;
        box-shadow: inset 10px 0 0 color-mix(in srgb, var(--ds-accent) 55%, transparent);
    }

    .brand-mark::after {
        inset: 5px 5px auto;
        height: 5px;
        border-top-width: 2px;
    }

    .brand strong {
        font-size: .9rem;
        line-height: 1.05;
    }

    .brand small {
        font-size: .64rem;
        line-height: 1.05;
    }

    .main-nav {
        gap: 12px;
        font-size: .84rem;
    }

    .main-nav a {
        min-height: 29px;
        padding: .18rem .08rem;
        line-height: 1.15;
    }

    .main-nav .nav-cta {
        min-height: 31px;
        padding: .34rem .56rem;
        font-size: .8rem;
        border-radius: 6px;
    }

    .hero--home {
        min-height: clamp(520px, calc(100vh - 52px), 640px);
    }

    .hero--home .hero-grid {
        grid-template-columns: minmax(0, .82fr) minmax(560px, 610px);
        align-items: start;
        gap: 40px;
        padding-block: clamp(22px, 3vw, 38px);
    }

    .hero--home .hero-copy {
        max-width: 660px;
        padding-top: clamp(12px, 3.2vh, 32px);
    }

    .hero--home .ds-title--hero {
        max-width: 620px;
        font-size: clamp(2.25rem, 3.25vw, 3.55rem);
        line-height: .98;
    }

    .hero--home .ds-lead {
        max-width: 580px;
        margin-top: .85rem;
        font-size: clamp(.98rem, 1.15vw, 1.08rem);
    }

    .hero--home .hero-actions {
        margin-top: 16px;
    }

    .hero--home .trust-badges {
        margin-top: 12px;
    }

    .hero--home .quote-widget {
        padding: 18px;
    }

    .hero--home .viteundevis-form {
        min-height: 330px;
    }
}

.hero {
    background:
        linear-gradient(115deg, rgba(255, 247, 232, .98), rgba(255, 241, 206, .94) 42%, rgba(228, 241, 231, .96)),
        repeating-linear-gradient(90deg, rgba(185, 94, 66, .09) 0 1px, transparent 1px 34px),
        var(--ds-paper);
}

.hero::before {
    content: "";
    position: absolute;
    right: max(18px, calc((100vw - var(--ds-max)) / 2));
    bottom: 0;
    width: min(34vw, 380px);
    height: min(26vw, 260px);
    border: 2px solid rgba(23, 63, 54, .16);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background:
        linear-gradient(90deg, transparent 0 42%, rgba(23, 63, 54, .14) 42% 45%, transparent 45% 100%),
        linear-gradient(0deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .1)),
        repeating-linear-gradient(0deg, rgba(185, 94, 66, .17) 0 2px, transparent 2px 22px);
    opacity: .55;
    pointer-events: none;
}

.hero.no-form .hero-grid {
    grid-template-columns: minmax(0, 1fr);
}

.hero.no-form .hero-copy {
    max-width: 880px;
}

.hero-copy {
    grid-column: 1;
}

.hero-form {
    grid-column: 2;
    grid-row: 1;
}

.hero-after--mobile {
    display: none;
}

.hero-copy,
.hero-after,
.hero-form {
    position: relative;
    z-index: 1;
}

.hero-badge {
    color: var(--ds-primary-strong);
    font-weight: 850;
}

.mobile-reassurance {
    display: none;
}

.hero-mobile-actions {
    display: none;
}

.trust-badges li {
    color: var(--facade-ink-soft);
}

.quote-widget {
    border-color: rgba(185, 94, 66, .26);
}

.quote-widget h2 {
    color: var(--ds-primary-strong);
}

.viteundevis-form {
    min-height: 260px;
}

.quote-hint {
    margin: 10px 0 0;
    color: var(--ds-muted);
    font-size: .88rem;
}

.quote-fallback {
    margin-top: 12px;
}

.band {
    background:
        linear-gradient(180deg, rgba(255, 250, 240, .68), rgba(228, 241, 231, .44));
}

.step-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 50%;
    color: #fff;
    background: var(--facade-brick);
    font-weight: 850;
}

.cards-grid.compact-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.intent-card,
.service-card,
.city-card,
.nearby-business-card,
.ds-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.intent-card:hover,
.service-card:hover,
.city-card:hover,
.nearby-business-card:hover {
    border-color: rgba(185, 94, 66, .42);
    box-shadow: 0 18px 40px rgba(47, 36, 29, .13);
    transform: translateY(-2px);
}

.intent-card.is-active {
    border-color: var(--facade-brick);
    background: linear-gradient(180deg, #fff, rgba(255, 241, 206, .7));
}

.checklist-grid,
.link-columns {
    width: min(var(--ds-max), calc(100% - 32px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ds-space-4);
}

.checklist-grid p {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid color-mix(in srgb, var(--ds-line) 84%, transparent);
    border-radius: var(--ds-radius);
    background: var(--ds-surface);
    font-weight: 740;
}

.plain-links,
.feature-list,
.pill-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plain-links li + li {
    margin-top: 9px;
}

.plain-links a,
.text-link {
    color: var(--ds-primary);
    font-weight: 780;
}

.pill-list {
    width: min(var(--ds-max), calc(100% - 32px));
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-list a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: .62rem .75rem;
    border: 1px solid rgba(23, 63, 54, .16);
    border-radius: var(--ds-radius);
    background: var(--ds-surface);
    color: var(--ds-primary);
    font-weight: 780;
    text-decoration: none;
}

.feature-list {
    width: min(840px, calc(100% - 32px));
    margin-inline: auto;
    display: grid;
    gap: 12px;
}

.feature-list li {
    padding: 16px 18px;
    border-left: 5px solid var(--facade-brick);
    border-radius: var(--ds-radius);
    background: #fff;
    font-weight: 760;
}

.local-hub-grid {
    width: min(var(--ds-max), calc(100% - 32px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ds-space-4);
}

.city-jump-panel {
    width: min(var(--ds-max), calc(100% - 32px));
    margin: 0 auto var(--ds-space-5);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr);
    align-items: end;
    gap: var(--ds-space-4);
    padding: 24px;
    border: 1px solid rgba(23, 63, 54, .16);
    border-radius: var(--ds-radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(233, 246, 248, .72)),
        var(--ds-surface);
    box-shadow: 0 18px 42px rgba(47, 36, 29, .1);
}

.city-jump-panel h3 {
    margin: 0;
    font-family: var(--ds-font-display);
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.08;
}

.city-jump-panel p {
    max-width: 62ch;
    margin-bottom: 0;
    color: var(--ds-muted);
}

.city-jump-form {
    display: grid;
    gap: 10px;
}

.city-jump-form label {
    font-size: .9rem;
    font-weight: 850;
    color: var(--ds-primary-strong);
}

.city-jump-form select {
    min-height: 48px;
    width: 100%;
    padding: .75rem .85rem;
    border: 1px solid rgba(23, 63, 54, .2);
    border-radius: var(--ds-radius);
    background: #fff;
    color: var(--ds-ink);
    font: inherit;
    font-weight: 760;
}

.city-jump-regions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(23, 63, 54, .1);
}

.city-jump-regions a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: .5rem .7rem;
    border: 1px solid rgba(23, 63, 54, .13);
    border-radius: var(--ds-radius);
    background: rgba(255, 255, 255, .78);
    color: var(--ds-primary);
    font-weight: 800;
    text-decoration: none;
}

.local-hub-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--ds-line) 86%, transparent);
    border-radius: var(--ds-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 250, 240, .9));
    box-shadow: 0 16px 38px rgba(47, 36, 29, .1);
}

.local-hub-card--warm {
    border-color: rgba(185, 94, 66, .25);
    background:
        linear-gradient(180deg, rgba(255, 241, 206, .82), rgba(255, 250, 240, .96));
}

.local-hub-card h3 {
    margin: 0;
    font-family: var(--ds-font-display);
    font-size: 1.38rem;
    line-height: 1.12;
}

.local-hub-card p {
    color: var(--ds-muted);
}

.local-link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.local-link-list a {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: .58rem .65rem;
    border: 1px solid rgba(23, 63, 54, .13);
    border-radius: var(--ds-radius);
    background: rgba(255, 255, 255, .78);
    color: var(--ds-primary);
    font-weight: 800;
    line-height: 1.18;
    text-decoration: none;
}

.local-link-list a:hover {
    border-color: rgba(185, 94, 66, .42);
    background: #fff;
}

.card-cta {
    margin: 18px 0 0;
}

.card-cta .ds-button {
    width: 100%;
}

.info-box,
.section-hint {
    width: min(var(--ds-max), calc(100% - 32px));
    margin: 18px auto 0;
}

.info-box {
    padding: 20px 22px;
    border: 1px solid rgba(29, 107, 77, .22);
    border-radius: var(--ds-radius);
    background: rgba(228, 241, 231, .68);
}

.local-empty-message {
    width: min(var(--ds-max), calc(100% - 32px));
    margin: 0 auto;
    color: var(--ds-muted);
    font-size: .9rem;
    font-weight: 560;
    line-height: 1.45;
}

.local-related-message {
    margin-top: 6px;
    margin-bottom: 14px;
    color: color-mix(in srgb, var(--ds-muted) 84%, var(--ds-ink));
    font-size: .86rem;
    line-height: 1.45;
}

.narrow {
    max-width: 860px;
}

.legal-copy h2,
.data-list dt {
    color: var(--ds-primary-strong);
}

.legal-warning {
    padding: 18px 20px;
    border-left: 5px solid var(--facade-brick);
    border-radius: var(--ds-radius);
    background: var(--ds-accent-soft);
    font-weight: 760;
}

.business-grid {
    align-items: stretch;
}

.business-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
    padding: 22px;
    text-decoration: none;
}

.business-card h3 {
    margin: 0;
    font-family: var(--ds-font-display);
    font-size: 1.28rem;
    line-height: 1.14;
    color: var(--ds-primary-strong);
}

.business-card p {
    margin: 0;
    color: var(--ds-muted);
}

.business-card__tag,
.business-card__status {
    color: var(--facade-brick);
    font-size: .84rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}

.business-card__activity {
    padding-top: 4px;
    color: var(--ds-ink);
    font-size: .94rem;
}

.business-card__status {
    margin-top: auto;
    color: var(--ds-primary);
    text-transform: none;
}

.guide-grid {
    align-items: stretch;
}

.guide-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--ds-line) 86%, transparent);
    border-radius: var(--ds-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 250, 240, .92));
    box-shadow: 0 14px 34px rgba(47, 36, 29, .08);
    color: var(--ds-ink);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.guide-card:hover {
    border-color: rgba(185, 94, 66, .42);
    box-shadow: 0 18px 40px rgba(47, 36, 29, .13);
    transform: translateY(-2px);
}

.guide-card__eyebrow,
.guide-card__link {
    color: var(--facade-brick);
    font-size: .82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.guide-card h3 {
    margin: 0;
    color: var(--ds-primary-strong);
    font-family: var(--ds-font-display);
    font-size: 1.32rem;
    line-height: 1.12;
}

.guide-card p {
    margin: 0;
    color: var(--ds-muted);
}

.guide-card__link {
    margin-top: auto;
    color: var(--ds-primary);
    text-transform: none;
}

.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .38fr);
    gap: var(--ds-space-5);
    align-items: start;
}

.guide-article,
.guide-aside .ds-card {
    padding: 26px;
    border: 1px solid rgba(23, 63, 54, .14);
    border-radius: var(--ds-radius);
    background: #fff;
    box-shadow: 0 14px 34px rgba(47, 36, 29, .08);
}

.guide-article h2,
.guide-aside h2 {
    margin: 26px 0 10px;
    color: var(--ds-primary-strong);
    font-family: var(--ds-font-display);
    line-height: 1.12;
}

.guide-article h2:first-child,
.guide-aside h2:first-child {
    margin-top: 0;
}

.guide-summary {
    margin-top: 0;
    color: var(--ds-primary-strong);
    font-size: 1.06rem;
    font-weight: 720;
}

.guide-feature-list {
    width: 100%;
}

.guide-aside {
    display: grid;
    gap: var(--ds-space-4);
}

.guide-aside .ds-button {
    width: 100%;
}

.business-profile {
    max-width: var(--ds-max);
}

.business-profile__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr);
    gap: var(--ds-space-4);
    margin-top: var(--ds-space-4);
}

.business-profile__main,
.business-profile__aside {
    padding: 24px;
    border: 1px solid rgba(23, 63, 54, .14);
    border-radius: var(--ds-radius);
    background: #fff;
    box-shadow: 0 14px 34px rgba(47, 36, 29, .08);
}

.business-profile__main h2,
.business-profile__aside h2,
.business-profile__aside h3 {
    margin-top: 0;
    color: var(--ds-primary-strong);
}

.data-list {
    display: grid;
    grid-template-columns: minmax(140px, .4fr) minmax(0, 1fr);
    gap: 10px 18px;
}

.data-list dt {
    font-weight: 850;
}

.data-list dd {
    margin: 0;
}

@media (max-width: 980px) {
    .hero::before {
        width: 48vw;
        height: 180px;
        opacity: .28;
    }

    .hero-copy,
    .hero-after,
    .hero-form {
        grid-column: auto;
        grid-row: auto;
    }

    .hero-after--desktop {
        display: none;
    }

    .hero-after--mobile {
        display: block;
    }
}

@media (max-width: 980px) {
    .header-inner {
        flex-direction: row;
        align-items: center;
        padding-block: 10px;
        min-height: 0;
        gap: 12px;
    }

    .brand small {
        display: none;
    }

    .nav-burger {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 200;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: auto;
        overflow-x: visible;
        padding: 8px 16px 16px;
        border-bottom: 1px solid color-mix(in srgb, var(--ds-line) 82%, transparent);
        background: color-mix(in srgb, var(--ds-paper-strong) 97%, transparent);
        backdrop-filter: blur(14px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        min-height: 46px;
        padding: .65rem .25rem;
        border-bottom: 1px solid color-mix(in srgb, var(--ds-line) 40%, transparent);
        font-size: 1rem;
        white-space: normal;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav .nav-cta {
        margin-top: 8px;
        min-height: 44px;
        padding: .7rem 1rem;
        text-align: center;
        justify-content: center;
        border-bottom: none;
        border-radius: var(--ds-radius);
    }
}

@media (max-width: 720px) {
    .mobile-reassurance {
        display: block;
        margin: 14px 0 0;
        padding: .65rem .75rem;
        border: 1px solid color-mix(in srgb, var(--ds-line) 84%, transparent);
        border-radius: var(--ds-radius);
        background: rgba(255, 255, 255, .72);
        color: var(--facade-ink-soft);
        font-size: .92rem;
        font-weight: 800;
    }

    .hero-mobile-actions {
        display: flex;
        margin-top: 14px;
    }

    .hero::before {
        display: none;
    }

    .hero-grid {
        width: min(var(--ds-max), calc(100% - 24px));
    }

    .cards-grid,
    .steps,
    .checklist-grid,
    .link-columns,
    .local-hub-grid,
    .city-jump-panel,
    .guide-layout,
    .business-profile__grid {
        width: min(var(--ds-max), calc(100% - 24px));
        grid-template-columns: 1fr;
    }

    .city-jump-panel {
        padding: 18px;
    }

    .city-jump-regions {
        grid-column: auto;
    }

    .local-link-list {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .pill-list,
    .feature-list,
    .info-box,
    .local-empty-message,
    .section-hint {
        width: min(var(--ds-max), calc(100% - 24px));
    }

    .viteundevis-form {
        min-height: 220px;
        overflow-x: auto;
    }

    .data-list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 981px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(540px, 600px);
    }
}
