/*
 * storefront-ui — the Blade storefront's look, after the Next.js customer site.
 * Loaded after Bootstrap and the vendor main.css. Every new class is `sf-` prefixed; the few vendor classes the
 * inner pages still use (.page-header, .dynamic-page-wrapper, .contact__item) are restyled at the end.
 * Palette and fonts: Supremepro-Home-service-nextjs/src/app/globals.css.
 */
:root {
    --sf-primary: #5b4bdb;
    --sf-primary-hover: #4a3bc4;
    --sf-primary-soft: #f0edff;
    --sf-ink: #101828;
    --sf-body: #475467;
    --sf-muted: #667085;
    --sf-subtle: #98a2b3;
    --sf-bg: #ffffff;
    --sf-page: #f7f8fb;
    --sf-soft: #f1f4f9;
    --sf-dark: #111827;
    --sf-border: #e4e7ec;
    --sf-radius: 22px;
    --sf-radius-sm: 12px;
    --sf-shadow: 0 10px 28px rgb(16 24 40 / 0.07);
    --sf-shadow-primary: 0 8px 18px rgb(91 75 219 / 0.24);
    --sf-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --sf-font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --sf-header-h: 76px;
}

body.sf-body {
    background: var(--sf-page);
    color: var(--sf-body);
    font-family: var(--sf-font);
    font-size: 16px;
    line-height: 1.6;
}
.sf-body h1, .sf-body h2, .sf-body h3, .sf-body h4, .sf-body h5, .sf-body h6 {
    font-family: var(--sf-font-display);
    color: var(--sf-ink);
    letter-spacing: -0.01em;
}
.sf-body a { color: inherit; }
.sf-body :focus-visible { outline: 3px solid var(--sf-primary); outline-offset: 2px; }

.sf-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .sf-container { padding: 0 24px; } }

.sf-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sf-skip {
    position: absolute; left: 16px; top: -60px; z-index: 1100; background: var(--sf-ink); color: #fff !important;
    padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .15s ease;
}
.sf-skip:focus { top: 12px; }

/* ------------------------------------------------------------------ buttons */
.sf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
    cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.sf-btn--primary { background: var(--sf-primary); color: #fff !important; box-shadow: var(--sf-shadow-primary); }
.sf-btn--primary:hover { background: var(--sf-primary-hover); }
.sf-btn--outline { background: #fff; color: var(--sf-ink) !important; border-color: var(--sf-border); }
.sf-btn--outline:hover { border-color: var(--sf-subtle); }
.sf-btn--dark { background: var(--sf-dark); color: #fff !important; }
.sf-btn--block { width: 100%; }
.sf-btn svg { flex: none; }

.sf-icon-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 12px; border: 1px solid var(--sf-border); background: #fff; color: var(--sf-ink) !important;
    cursor: pointer; text-decoration: none; flex: none;
}
.sf-icon-btn:hover { border-color: var(--sf-subtle); }

/* ------------------------------------------------------------------ top strip */
.sf-topbar { background: var(--sf-dark); color: #e4e7ec; font-size: 14px; }
.sf-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.sf-topbar a { color: #e4e7ec; text-decoration: none; }
.sf-topbar a:hover { color: #fff; text-decoration: underline; }
.sf-topbar__group { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sf-topbar .dropdown-menu { font-size: 14px; }
@media (max-width: 639px) { .sf-topbar { display: none; } }

/* ------------------------------------------------------------------ header */
.sf-header {
    position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--sf-border);
}
.sf-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--sf-header-h); }
.sf-logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.sf-logo img { height: 32px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; }
.sf-logo__text { font-family: var(--sf-font-display); font-weight: 700; font-size: 22px; color: var(--sf-ink); }

.sf-nav { flex: 1 1 auto; min-width: 0; }
.sf-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.sf-nav__item { position: relative; }
.sf-nav__trigger, .sf-nav__link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0;
    background: none; border-radius: 10px; color: #344054 !important; font-weight: 600; font-size: 15px;
    text-decoration: none; cursor: pointer; white-space: nowrap;
}
.sf-nav__trigger:hover, .sf-nav__link:hover, .sf-nav__trigger[aria-expanded="true"] { background: var(--sf-soft); color: var(--sf-ink) !important; }
.sf-nav__trigger svg { transition: transform .15s ease; }
.sf-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.sf-panel {
    position: absolute; top: calc(100% + 10px); left: 0; z-index: 1001; min-width: 280px; max-width: min(720px, 90vw);
    background: #fff; border: 1px solid var(--sf-border); border-radius: 18px; box-shadow: var(--sf-shadow); padding: 18px;
}
.sf-panel[hidden] { display: none; }
.sf-panel__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 16px; }
.sf-panel__grid--wide { min-width: 460px; }
.sf-panel__heading { display: block; font-weight: 700; color: var(--sf-ink); font-size: 14px; padding: 8px 10px 4px; }
.sf-panel__link {
    display: block; padding: 8px 10px; border-radius: 10px; color: #344054 !important; text-decoration: none; font-size: 15px;
}
.sf-panel__link:hover { background: var(--sf-soft); color: var(--sf-ink) !important; }
.sf-panel__all {
    display: inline-flex; margin-top: 10px; padding: 8px 10px; color: var(--sf-primary) !important; font-weight: 600;
    text-decoration: none; border-top: 1px solid var(--sf-border); width: 100%;
}

.sf-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.sf-burger { display: none; }

@media (max-width: 1359px) { .sf-hide-lg { display: none !important; } }
@media (max-width: 1023px) {
    .sf-nav, .sf-hide-md { display: none !important; }
    .sf-burger { display: inline-flex; }
}
@media (max-width: 639px) {
    .sf-hide-sm { display: none !important; }
    .sf-header__inner { gap: 12px; min-height: 68px; }
    .sf-actions .sf-btn { padding: 0 14px; font-size: 14px; }
}

/* ------------------------------------------------------------------ drawer */
.sf-drawer-backdrop { position: fixed; inset: 0; background: rgb(16 24 40 / 0.45); z-index: 1040; }
.sf-drawer-backdrop[hidden] { display: none; }
.sf-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1050; width: min(380px, 100%); background: #fff;
    display: flex; flex-direction: column; box-shadow: -10px 0 40px rgb(16 24 40 / 0.18); overflow-y: auto;
}
.sf-drawer[hidden] { display: none; }
.sf-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--sf-border); }
.sf-drawer__body { padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 4px; }
.sf-drawer__group { border-bottom: 1px solid var(--sf-border); }
.sf-drawer__toggle, .sf-drawer__link {
    display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px;
    background: none; border: 0; color: var(--sf-ink) !important; font-weight: 600; font-size: 16px; text-decoration: none; text-align: left; cursor: pointer;
}
.sf-drawer__toggle svg { transition: transform .15s ease; }
.sf-drawer__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sf-drawer__list { list-style: none; margin: 0 0 10px; padding: 0 0 0 8px; }
.sf-drawer__list[hidden] { display: none; }
.sf-drawer__list a { display: block; padding: 10px 4px; color: #344054 !important; text-decoration: none; }
.sf-drawer__actions { display: grid; gap: 10px; margin-top: 16px; }
body.sf-drawer-open { overflow: hidden; }

/* ------------------------------------------------------------------ media placeholder */
.sf-media { position: relative; display: block; overflow: hidden; background: linear-gradient(135deg, #ece9ff, #e0ecff); }
.sf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-media__empty { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: #8b80e8; }
.sf-media.is-empty .sf-media__empty { display: flex; }

/* ------------------------------------------------------------------ hero */
.sf-hero { background: linear-gradient(180deg, #f5f3ff 0%, #f7f8fb 100%); padding: 56px 0 64px; overflow: hidden; }
.sf-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .sf-hero__grid { grid-template-columns: 1.1fr 0.9fr; } .sf-hero { padding: 72px 0 80px; } }
.sf-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--sf-primary-soft);
    color: var(--sf-primary); font-weight: 600; font-size: 14px;
}
.sf-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgb(91 75 219 / 0.2); }
.sf-hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; font-weight: 700; margin: 18px 0 16px; letter-spacing: -0.03em; }
.sf-hero__line { font-size: 18px; color: var(--sf-muted); max-width: 560px; margin: 0 0 24px; }
.sf-search {
    display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--sf-border); border-radius: 18px;
    padding: 8px; box-shadow: var(--sf-shadow); max-width: 560px;
}
.sf-search input {
    flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; padding: 10px 12px; color: var(--sf-ink);
}
.sf-search input:focus-visible { outline: none; }
.sf-search:focus-within { border-color: var(--sf-primary); box-shadow: 0 0 0 3px rgb(91 75 219 / 0.15), var(--sf-shadow); }
@media (max-width: 479px) { .sf-search { flex-direction: column; align-items: stretch; } .sf-search .sf-btn { width: 100%; } }
.sf-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sf-mosaic { display: none; }
@media (min-width: 1024px) {
    .sf-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .sf-mosaic .sf-media { aspect-ratio: 4 / 3; border-radius: var(--sf-radius); box-shadow: var(--sf-shadow); }
    .sf-mosaic .sf-media:nth-child(2) { transform: translateY(28px); }
    .sf-mosaic .sf-media:nth-child(4) { transform: translateY(28px); }
}

/* ------------------------------------------------------------------ sections */
.sf-section { padding: 56px 0; }
@media (min-width: 1024px) { .sf-section { padding: 72px 0; } }
.sf-section--white { background: #fff; }
.sf-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sf-section__title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; margin: 0 0 6px; letter-spacing: -0.02em; }
.sf-section__line { margin: 0; color: var(--sf-muted); max-width: 640px; }
.sf-see-all { color: var(--sf-primary) !important; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sf-see-all:hover { text-decoration: underline; }

/* main category cards */
.sf-cat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .sf-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sf-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sf-cat {
    display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 20px 14px; text-align: center;
    background: #fff; border: 1px solid var(--sf-border); border-radius: 18px; text-decoration: none; color: var(--sf-ink) !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
a.sf-cat:hover { border-color: #c9c2f5; box-shadow: var(--sf-shadow); }
.sf-cat .sf-media { width: 72px; height: 72px; border-radius: 18px; }
.sf-cat__name { font-weight: 600; font-size: 16px; line-height: 1.3; }

/* four-card rows */
.sf-card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .sf-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sf-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.sf-card {
    display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--sf-border); border-radius: 18px;
    overflow: hidden; text-decoration: none; color: inherit !important; transition: border-color .15s ease, box-shadow .15s ease;
}
a.sf-card:hover { border-color: #c9c2f5; box-shadow: var(--sf-shadow); }
.sf-card .sf-media { aspect-ratio: 16 / 10; }
.sf-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1 1 auto; }
.sf-card__name { font-family: var(--sf-font-display); font-weight: 600; font-size: 17px; color: var(--sf-ink); line-height: 1.3; margin: 0; }
.sf-card__line {
    margin: 0; font-size: 14px; color: var(--sf-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sf-card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.sf-price__label { display: block; font-size: 12px; color: var(--sf-muted); }
.sf-price__amount { display: block; font-weight: 700; font-size: 18px; color: var(--sf-ink); }
.sf-card__count { font-size: 14px; color: var(--sf-muted); }
.sf-card__go { color: var(--sf-primary); font-weight: 600; font-size: 14px; }

/* ------------------------------------------------------------------ footer */
.sf-footer { background: var(--sf-dark); color: #d0d5dd; padding: 56px 0 0; margin-top: 0; }
.sf-footer a { color: #d0d5dd; text-decoration: none; }
.sf-footer a:hover { color: #fff; text-decoration: underline; }
.sf-footer__grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-footer__brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .sf-footer__brand { grid-column: auto; } }
@media (min-width: 640px) { .sf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sf-footer__grid { grid-template-columns: 1.6fr repeat(var(--sf-footer-cols, 4), minmax(0, 1fr)); } }
.sf-footer__brand img { height: 36px; width: auto; max-width: 200px; object-fit: contain; }
.sf-footer__brand .sf-logo__text { color: #fff; }
.sf-footer__brand p { margin: 14px 0 0; }
.sf-footer__contact { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.sf-social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sf-social a { display: inline-flex; padding: 6px 12px; border: 1px solid #344054; border-radius: 999px; font-size: 14px; }
.sf-social a:hover { border-color: #98a2b3; text-decoration: none; }
.sf-footer .sf-footer__title { color: #fff; font-family: var(--sf-font-display); font-weight: 600; font-size: 16px; margin: 0 0 12px; }
.sf-footer .sf-footer__title a { color: #fff; }
.sf-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sf-footer__bottom { margin-top: 40px; border-top: 1px solid #1f2937; padding: 18px 0 24px; font-size: 14px; color: #98a2b3; }

/* ------------------------------------------------------------------ inner pages (vendor classes, restyled) */
.sf-body .page-header {
    background: #fff !important; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); min-height: 0; padding: 40px 24px;
    margin-top: 16px; text-align: left; box-shadow: none;
}
.sf-body .page-header::before, .sf-body .page-header::after { display: none !important; }
.sf-body .page-header .title { color: var(--sf-ink) !important; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin: 0; text-transform: capitalize; }
.sf-body .dynamic-page-wrapper { background: #fff; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 28px 24px; color: var(--sf-body); max-width: 860px; }
.sf-body .dynamic-page-wrapper :where(h1, h2, h3, h4) { margin-top: 1.25rem; }
.sf-body .dynamic-page-wrapper a { color: var(--sf-primary); }
.sf-body .contact__item {
    background: #fff; border: 1px solid var(--sf-border); border-radius: 18px; padding: 24px; box-shadow: none;
}
.sf-body .contact__item-icon {
    background: var(--sf-primary-soft) !important; color: var(--sf-primary) !important; width: 48px; height: 48px;
    border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px;
}
.sf-body .contact__item-title { color: var(--sf-ink); font-size: 18px; font-weight: 600; }
.sf-body .contact__item a { color: var(--sf-primary); word-break: break-word; }
.sf-body .contact-section .col-6 { flex: 0 0 auto; width: 100%; }
@media (min-width: 768px) { .sf-body .contact-section .col-6 { width: 33.3333%; } }
