.sd-page {
    overflow: hidden;
    background: #fff;
}

.sd-hero {
    position: relative;
    padding: 48px 24px 0;
    background:
        radial-gradient(ellipse at 86% 27%, rgba(251, 214, 194, .48), transparent 34%),
        radial-gradient(ellipse at 16% 2%, rgba(255, 238, 228, .78), transparent 48%),
        #fffaf7;
}

.sd-hero-inner,
.sd-directory-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.sd-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .92fr);
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
    min-height: 490px;
}

.sd-hero-copy {
    position: relative;
    z-index: 1;
    padding: 4px 0 42px;
}

.sd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    color: #77736f;
    font-size: 13px;
    font-weight: 600;
}

.sd-breadcrumb a { color: #77736f; }
.sd-breadcrumb a:hover { color: var(--brand); text-decoration: none; }
.sd-breadcrumb i { font-size: 9px; color: #b7ada7; }
.sd-breadcrumb [aria-current] { color: var(--ink); }

.sd-eyebrow,
.sd-section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #a85e47;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.sd-eyebrow { margin-bottom: 18px; }
.sd-eyebrow > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(242, 82, 79, .12);
}

.sd-hero h1 {
    max-width: 640px;
    margin: 0;
    color: #231d1c;
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5.2vw, 4.65rem);
    font-weight: 500;
    letter-spacing: -.052em;
    line-height: 1.02;
}

.sd-hero h1 em,
.sd-section-heading h2 em {
    color: var(--brand);
    font-weight: 500;
}

.sd-hero-lead {
    max-width: 455px;
    margin: 20px 0 27px;
    color: #716b68;
    font-size: 15px;
    line-height: 1.8;
}

.sd-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(590px, 100%);
    min-height: 62px;
    padding: 7px 8px 7px 19px;
    border: 1px solid rgba(42, 33, 29, .08);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(47, 35, 29, .09);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.sd-search:focus-within {
    border-color: rgba(242, 82, 79, .48);
    box-shadow: 0 0 0 4px rgba(242, 82, 79, .09), 0 15px 40px rgba(47, 35, 29, .09);
}

.sd-search-icon {
    flex-shrink: 0;
    margin: 0;
    color: #958b85;
    font-size: 16px;
}

.sd-search #service-search,
.sd-search #service-search:focus {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 44px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ink) !important;
    font-size: 14px !important;
}

.sd-search #service-search::placeholder { color: #a59c96; opacity: 1; }
.sd-search-spinner { color: var(--brand); font-size: 15px; }
.sd-search-spinner[hidden],
.sd-search-clear[hidden] { display: none; }

.sd-search-clear {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f5f2f0;
    color: #77736f;
    cursor: pointer;
}

.sd-search-clear:hover { background: #eee8e5; color: var(--ink); }

.sd-search-submit {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 19px;
    border: 0;
    border-radius: 12px;
    background: var(--brand-gradient);
    box-shadow: 0 7px 16px rgba(242, 82, 79, .2);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sd-search-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(242, 82, 79, .25); }
.sd-search-submit i { font-size: 11px; }

.sd-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    color: #8d837d;
    font-size: 11px;
}

.sd-popular > span { margin-right: 1px; font-weight: 700; }
.sd-popular a {
    padding: 5px 10px;
    border: 1px solid rgba(73, 57, 48, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .64);
    color: #665c57;
    font-size: 11px;
    font-weight: 600;
}

.sd-popular a:hover { border-color: rgba(242, 82, 79, .28); background: #fff; color: var(--brand); text-decoration: none; }

.sd-hero-art {
    position: relative;
    min-height: 430px;
    isolation: isolate;
}

.sd-art-glow {
    position: absolute;
    inset: 9% 4% 4% 8%;
    z-index: -1;
    border-radius: 48% 52% 38% 62% / 44% 39% 61% 56%;
    background: linear-gradient(140deg, #f8d8c6, #f2b8a1 48%, #f6e8d4);
    transform: rotate(-7deg);
}

.sd-photo {
    position: absolute;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, .9);
    border-radius: 22px;
    background: #f2e7df;
    box-shadow: 0 22px 50px rgba(74, 46, 34, .18);
}

.sd-photo img { width: 100%; height: 100%; object-fit: cover; }
.sd-photo-main { top: 6%; right: 12%; width: 58%; height: 71%; transform: rotate(4deg); }
.sd-photo-secondary { top: 27%; left: 3%; width: 39%; height: 43%; transform: rotate(-8deg); }
.sd-photo-tertiary { right: 1%; bottom: 1%; width: 41%; height: 33%; transform: rotate(5deg); }

.sd-art-note {
    position: absolute;
    left: 8%;
    bottom: 3%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 17px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 15px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 12px 30px rgba(47, 35, 29, .12);
    color: #55453d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    transform: rotate(-4deg);
}

.sd-art-note i { color: var(--brand); font-size: 17px; }

.sd-hero-foot {
    display: flex;
    align-items: center;
    gap: 13px;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 0 17px;
    color: #a69b94;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

.sd-hero-foot-line { width: 45px; height: 1px; background: #d7c7bd; }

.sd-directory {
    padding: 74px 24px 100px;
    background:
        radial-gradient(ellipse at 2% 16%, rgba(255, 242, 237, .65), transparent 28%),
        #fff;
}

.sd-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.sd-section-label { margin-bottom: 10px; }

.sd-section-heading h2 {
    margin: 0;
    color: #26201e;
    font-family: var(--font-serif);
    font-size: clamp(2.15rem, 3.5vw, 3.15rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.sd-section-heading p {
    margin: 11px 0 0;
    color: #807872;
    font-size: 14px;
}

.sd-result-count {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-shrink: 0;
    padding-bottom: 4px;
    color: #8b817b;
    font-size: 12px;
}

.sd-result-count strong { color: var(--ink); font-size: 18px; }

.sd-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.sd-service-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 210px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid #eee8e4;
    border-radius: 17px;
    background: #faf6f3;
    color: var(--ink);
    box-shadow: 0 2px 6px rgba(49, 37, 30, .035);
    isolation: isolate;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.sd-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 82, 79, .28);
    box-shadow: 0 16px 30px rgba(49, 37, 30, .1);
    color: var(--ink);
    text-decoration: none;
}

.sd-service-card:focus-visible {
    outline: 3px solid rgba(242, 82, 79, .48);
    outline-offset: 3px;
}

.sd-service-image { position: absolute; inset: 0; z-index: -1; }
.sd-service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.sd-service-card:hover .sd-service-image img { transform: scale(1.055); }
.sd-service-image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 17, 15, .02) 28%, rgba(20, 17, 15, .76) 100%);
}

.sd-service-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    width: 49px;
    height: 49px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 15px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 5px 18px rgba(49, 37, 30, .07);
    color: var(--brand);
    font-size: 19px;
}

.sd-service-icon.tone-blue { color: #3566cb; background: #eff4ff; }
.sd-service-icon.tone-green { color: #16866c; background: #eaf8f3; }
.sd-service-icon.tone-amber { color: #bd781b; background: #fff5e3; }
.sd-service-icon.tone-purple { color: #7757c7; background: #f3efff; }
.sd-service-icon.tone-pink { color: #d45373; background: #fff0f3; }

.sd-service-card-copy {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 18px;
}

.sd-service-name {
    min-width: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sd-service-image ~ .sd-service-card-copy .sd-service-name { color: #fff; }

.sd-service-explore {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    color: #968b84;
    font-size: 10px;
    font-weight: 700;
    transition: color .2s ease;
}

.sd-service-image ~ .sd-service-card-copy .sd-service-explore { color: rgba(255, 255, 255, .86); }
.sd-service-explore i { font-size: 9px; transition: transform .2s ease; }
.sd-service-card:hover .sd-service-explore { color: var(--brand); }
.sd-service-image ~ .sd-service-card-copy .sd-service-explore { color: #fff; }
.sd-service-card:hover .sd-service-explore i { transform: translateX(3px); }

.sd-empty-state {
    grid-column: 1 / -1;
    padding: 58px 24px;
    border: 1px dashed #e6dcd6;
    border-radius: 18px;
    background: #fffaf7;
    text-align: center;
}

.sd-empty-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 15px;
    background: #fff0ed;
    color: var(--brand);
}

.sd-empty-state h3 { margin: 0; font-family: var(--font-serif); font-size: 23px; font-weight: 500; }
.sd-empty-state p { margin: 8px 0 0; color: #807872; font-size: 13px; }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 991px) {
    .sd-hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(280px, .8fr); gap: 20px; min-height: 425px; }
    .sd-hero-art { min-height: 370px; }
    .sd-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .sd-hero { padding: 25px 20px 0; }
    .sd-hero-inner { grid-template-columns: 1fr; gap: 0; }
    .sd-hero-copy { padding: 0 0 20px; }
    .sd-breadcrumb { margin-bottom: 26px; }
    .sd-hero h1 { font-size: clamp(2.8rem, 11vw, 4.1rem); }
    .sd-hero-lead { margin: 15px 0 21px; font-size: 14px; }
    .sd-hero-art { width: min(430px, 100%); min-height: 320px; margin: 0 auto; }
    .sd-photo-main { right: 13%; width: 57%; height: 74%; }
    .sd-photo-secondary { left: 4%; width: 38%; height: 43%; }
    .sd-photo-tertiary { width: 39%; height: 33%; }
    .sd-art-note { left: 9%; bottom: 0; }
    .sd-hero-foot { padding-bottom: 13px; }
    .sd-directory { padding: 54px 20px 72px; }
    .sd-section-heading { align-items: flex-start; margin-bottom: 24px; }
    .sd-section-heading p { max-width: 370px; font-size: 13px; }
    .sd-result-count { padding-top: 8px; }
    .sd-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sd-service-card { min-height: 190px; }
    .sd-service-card-copy { padding: 14px; }
    .sd-service-name { font-size: 13px; }
    .sd-service-explore { font-size: 0; }
    .sd-service-explore i { font-size: 11px; }
}

@media (max-width: 420px) {
    .sd-search { gap: 9px; padding-left: 14px; }
    .sd-search input { font-size: 13px; }
    .sd-search-submit { min-height: 42px; gap: 0; padding: 0 13px; }
    .sd-search-submit span { display: none; }
    .sd-section-heading { display: block; }
    .sd-result-count { padding-top: 13px; }
    .sd-service-card { min-height: 165px; }
}

@media (prefers-reduced-motion: reduce) {
    .sd-service-card,
    .sd-service-image img,
    .sd-search,
    .sd-search-submit { transition: none; }
}
