/* =====================================================================
   ShiftMint — shared page primitives.
   Reusable building blocks for all public content pages (about, blog,
   contact, legal). Page-specific styles live in their own stylesheet.
   Relies on the design tokens declared in public.css :root.
   ===================================================================== */

/* ---- Container -------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.container--narrow { max-width: 820px; }

/* ---- Generic section spacing ------------------------------------------------ */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--muted { background: var(--bg-alt); }
.section--tight { padding: clamp(1.75rem, 4vw, 3rem) 0; }

/* ---- Page hero (compact banner used on inner pages) ------------------------- */
.page-hero {
    background: linear-gradient(180deg, var(--brand-soft) 0%, #ffffff 100%);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--line);
}
.page-hero__inner { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.page-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 .75rem;
}
.page-hero__title {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 .75rem;
    color: var(--ink);
}
.page-hero__lead {
    font-size: 1.08rem;
    color: var(--ink-soft);
    margin: 0;
    max-width: 65ch;
}

/* ---- Breadcrumb ------------------------------------------------------------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    font-size: .85rem;
    color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb [aria-current="page"] { color: var(--ink-soft); font-weight: 600; }

/* ---- Soft-pink breadcrumb hero (shared banner) ----------------------------- */
/* Reusable light-pink breadcrumb banner used across every inner page (About,
   Contact, For Businesses/Workers, Blog, Legal, FAQ). Self-contained: no image
   asset required. Compact banner that keeps ONLY the breadcrumb + page title —
   dark text on a soft brand-pink gradient with a subtle dot texture. Any
   eyebrow / lead / meta belongs in the page body, not here. */
.page-hero--photo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2rem, 4.5vw, 3.25rem) 0;
    border-bottom: 1px solid var(--line);
    text-align: center;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 122, 163, 0.28) 0, transparent 45%),
        radial-gradient(circle at 8% 115%, rgba(255, 86, 141, 0.18) 0, transparent 52%),
        linear-gradient(135deg, rgba(255, 122, 163, 0.22) 0%, rgba(255, 86, 141, 0.10) 45%, rgba(248, 250, 252, 0.98) 100%);
}
/* Soft dotted texture layer (brand pink, very low opacity). */
.page-hero--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff568d' fill-opacity='0.08'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 46px 46px;
}
.page-hero--photo .page-hero__inner { position: relative; z-index: 2; width: 100%; }
/* Center the breadcrumb + title; dark text uses the base .page-hero colors. */
.page-hero--photo .breadcrumb { justify-content: center; margin-bottom: .85rem; }
.page-hero--photo .page-hero__title { margin-bottom: 0; }

/* ---- Section heading block -------------------------------------------------- */
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head__eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 .6rem;
}
.section-head__title {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 .6rem;
    color: var(--ink);
}
.section-head__lead { font-size: 1.05rem; color: var(--ink-soft); margin: 0; }

/* ---- Prose (long-form rich text: legal, blog body) -------------------------- */
.prose { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin: 2.25rem 0 .85rem;
    letter-spacing: -.01em;
}
.prose h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin: 1.75rem 0 .6rem;
}
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.prose li { margin: 0 0 .5rem; }
.prose a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose blockquote {
    margin: 1.5rem 0;
    padding: .75rem 1.25rem;
    border-left: 4px solid var(--brand);
    background: var(--brand-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--ink-soft);
}

/* ---- Card ------------------------------------------------------------------- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d9dee6; }

/* ---- Badge / chip ----------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: .28rem .6rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

/* ---- Simple responsive grid helpers ---------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---- Alerts (form feedback) ------------------------------------------------- */
.alert { border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 0 0 1.25rem; font-size: .95rem; }
.alert--success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ---- Placeholder role dashboards ------------------------------------------- */
.dashboard-placeholder {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.dashboard-placeholder__badge {
    display: inline-block;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: #fde3ec;
    color: #E6396D;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.dashboard-placeholder__title { font-size: 2rem; margin: 0 0 .5rem; color: var(--color-primary); }
.dashboard-placeholder__welcome { color: #475569; margin: 0 0 .25rem; }
.dashboard-placeholder__lead { color: #64748b; margin: 0 0 1.5rem; }
.dashboard-placeholder__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.75rem;
    max-width: 420px;
    text-align: left;
}
.dashboard-placeholder__list li {
    padding: .7rem 1rem .7rem 2.1rem;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    margin-bottom: .6rem;
    position: relative;
    color: #334155;
}
.dashboard-placeholder__list li::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #E6396D;
    transform: translateY(-50%);
}
