/* =============================================================================
   Mosaic Community Services - Showcase Stylesheet
   -----------------------------------------------------------------------------
   Token-driven design for per-association showcase pages (e.g. body corporates,
   homeowners associations, sectional-title schemes). Architecturally mirrors
   mosaic-home-services-listings.css but is fully namespaced under
   .cs-showcase-* so the two modules can coexist without bleed.

   Brand alignment: Mosaic palette only - blue (#1d44b8), brand-deep navy
   (#0a1733), silver (#c0c4cc) and white. No third accent colour.
   Mosaic-Coding-Standards.md: kebab-case selectors and HTML attributes.
   ============================================================================= */

/* ---------- Font ---------- */
/* ---------- Design Tokens ---------- */
:root {
    --mcs-brand:        #1d44b8;
    --mcs-brand-deep:   #0a1733;
    --mcs-brand-soft:   rgba(29, 68, 184, 0.12);
    --mcs-brand-glow:   rgba(29, 68, 184, 0.35);
    --mcs-silver:       #c0c4cc;
    --mcs-silver-soft:  rgba(192, 196, 204, 0.22);
    --mcs-accent:       #0a1733;
    --mcs-accent-soft:  rgba(10, 23, 51, 0.08);
    --mcs-accent-glow:  rgba(10, 23, 51, 0.25);
    --mcs-ink:          #0c1330;
    --mcs-ink-soft:     #404040;
    --mcs-body:         #595959;
    --mcs-muted:        #8a8f9c;
    --mcs-line:         #d8dde6;
    --mcs-surface:      #f4f6fa;
    --mcs-surface-2:    #ebeef4;
    --mcs-white:        #ffffff;
    --mcs-radius-sm:    8px;
    --mcs-radius:       16px;
    --mcs-radius-lg:    24px;
    --mcs-radius-pill:  999px;
    --mcs-shadow:       0 20px 60px -25px rgba(11, 27, 72, 0.35);
    --mcs-shadow-soft:  0 10px 30px -15px rgba(11, 27, 72, 0.22);
    --mcs-shadow-card:  0 1px 2px rgba(11, 27, 72, 0.05), 0 12px 32px -18px rgba(11, 27, 72, 0.18);
    --mcs-ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
    --mcs-max:          1080px;
}

/* ---------- Reset (scoped to showcase shell to avoid bleed into other pages) ---------- */
.cs-showcase, .cs-showcase *, .cs-showcase *::before, .cs-showcase *::after { box-sizing: border-box; }
body.cs-showcase-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    font-size: 100%;
    line-height: 1.65;
    color: var(--mcs-body);
    background: var(--mcs-white);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.cs-showcase img { max-width: 100%; display: block; }
.cs-showcase a {
    color: var(--mcs-brand);
    text-decoration: none;
    transition: color 0.2s var(--mcs-ease);
}
.cs-showcase a:hover, .cs-showcase a:focus { color: var(--mcs-brand-deep); }
.cs-showcase button { font-family: inherit; }

/* ---------- Top Navigation ---------- */
.cs-showcase-top-navigation {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(3vw, 16px);
    background: rgba(10, 23, 51, 0.92);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}
.cs-showcase-top-navigation a {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 18px 14px;
    color: var(--mcs-white);
    font-weight: 600;
}
.cs-showcase-top-navigation a:hover,
.cs-showcase-top-navigation a:focus { color: #b9d0ff; }
.cs-showcase-top-navigation .cs-showcase-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 4px;
    letter-spacing: 2.5px;
}
.cs-showcase-top-navigation .cs-showcase-brand img {
    height: 28px;
    width: auto;
    display: block;
}
.cs-showcase-top-navigation .icon {
    display: none;
    background: transparent;
    border: 0;
    padding: 18px 14px;
    margin: 0;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0;
    color: var(--mcs-white);
    cursor: pointer;
}
.cs-showcase-top-navigation .icon:hover,
.cs-showcase-top-navigation .icon:focus { color: #b9d0ff; }

/* ---------- Breadcrumb ---------- */
.cs-showcase-breadcrumb {
    max-width: var(--mcs-max);
    margin: 0 auto;
    padding: 14px max(3vw, 16px) 0;
}
.cs-showcase-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--mcs-ink-soft);
    text-transform: uppercase;
}
.cs-showcase-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
    color: var(--mcs-ink-soft);
}
.cs-showcase-breadcrumb a {
    color: var(--mcs-ink-soft);
    font-weight: 600;
}
.cs-showcase-breadcrumb a:hover,
.cs-showcase-breadcrumb a:focus { color: var(--mcs-brand); }
.cs-showcase-breadcrumb [aria-current="page"] {
    color: var(--mcs-ink);
    font-weight: 600;
}

/* ---------- Hero ---------- */
.cs-showcase-hero {
    position: relative;
    min-height: clamp(360px, 60vh, 600px);
    margin: 22px auto 32px;
    max-width: var(--mcs-max);
    border-radius: var(--mcs-radius-lg);
    background-color: var(--mcs-brand-deep);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--mcs-white);
    overflow: hidden;
    box-shadow: var(--mcs-shadow);
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.cs-showcase-hero-inner {
    position: relative;
    z-index: 1;
    padding: clamp(24px, 5vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cs-showcase-hero h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 200;
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin: 0;
    color: var(--mcs-white);
    text-shadow: 0 4px 20px rgba(10, 23, 51, 0.45);
}
.cs-showcase-hero-location {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: #d8e2f8;
}
.cs-showcase-hero-tagline {
    margin: 4px 0 12px;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 300;
    color: var(--mcs-white);
}
.cs-showcase-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

/* ---------- Category Pill (Sectional Title / HOA / Body Corporate) ---------- */
.cs-showcase-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 7px 16px;
    border-radius: var(--mcs-radius-pill);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mcs-brand-deep);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}
.cs-showcase-category-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mcs-white);
}

/* ---------- Call-to-Action Buttons ---------- */
.cs-showcase-call-to-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--mcs-radius-pill);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.25s var(--mcs-ease), color 0.25s var(--mcs-ease), transform 0.2s var(--mcs-ease);
}
.cs-showcase a.cs-showcase-call-to-action-primary,
.cs-showcase-call-to-action-primary {
    background: var(--mcs-brand);
    color: var(--mcs-white);
}
.cs-showcase a.cs-showcase-call-to-action-primary:hover,
.cs-showcase a.cs-showcase-call-to-action-primary:focus,
.cs-showcase-call-to-action-primary:hover,
.cs-showcase-call-to-action-primary:focus {
    background: var(--mcs-white);
    color: var(--mcs-brand);
    transform: translateY(-1px);
}
.cs-showcase a.cs-showcase-call-to-action-secondary,
.cs-showcase-call-to-action-secondary {
    background: rgba(10, 23, 51, 0.55);
    color: var(--mcs-white);
    border-color: var(--mcs-white);
    backdrop-filter: blur(6px);
}
.cs-showcase a.cs-showcase-call-to-action-secondary:hover,
.cs-showcase a.cs-showcase-call-to-action-secondary:focus,
.cs-showcase-call-to-action-secondary:hover,
.cs-showcase-call-to-action-secondary:focus {
    background: var(--mcs-white);
    color: var(--mcs-brand-deep);
    transform: translateY(-1px);
}

/* ---------- Shell + Section Cards ---------- */
.cs-showcase-shell {
    max-width: var(--mcs-max);
    margin: 0 auto;
    padding: 0 max(3vw, 16px) 120px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.cs-showcase-card {
    background: var(--mcs-white);
    border: 1px solid var(--mcs-line);
    border-radius: var(--mcs-radius);
    box-shadow: var(--mcs-shadow-card);
    padding: clamp(20px, 4vw, 36px);
}
.cs-showcase-section h2 {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    letter-spacing: 1px;
    color: var(--mcs-ink);
}
.cs-showcase-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: var(--mcs-accent);
    border-radius: 3px;
}
.cs-showcase-section p {
    margin: 0 0 14px;
    color: var(--mcs-body);
}
.cs-showcase-section p:last-child { margin-bottom: 0; }
.cs-showcase-section strong { color: var(--mcs-ink); font-weight: 600; }

/* ---------- Quick Facts ---------- */
.cs-showcase-quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cs-showcase-quick-facts li {
    background: var(--mcs-surface);
    border-radius: var(--mcs-radius-sm);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cs-showcase-quick-facts .cs-showcase-fact-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mcs-muted);
    font-weight: 600;
}
.cs-showcase-quick-facts .cs-showcase-fact-value {
    font-size: 1rem;
    color: var(--mcs-ink);
    font-weight: 500;
}

/* ---------- Definition Lists ---------- */
.cs-showcase-definition-list {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}
.cs-showcase-definition-list dt {
    font-weight: 600;
    color: var(--mcs-brand);
    letter-spacing: 0.5px;
}
.cs-showcase-definition-list dd {
    margin: 0;
    color: var(--mcs-ink);
    text-align: right;
}

/* ---------- Feature Tags ---------- */
.cs-showcase-features {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cs-showcase-features li {
    background: var(--mcs-accent-soft);
    color: var(--mcs-brand-deep);
    padding: 6px 14px;
    border-radius: var(--mcs-radius-pill);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ---------- Gallery ---------- */
.cs-showcase-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.cs-showcase-gallery-tile {
    position: relative;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    border-radius: var(--mcs-radius-sm);
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.25s var(--mcs-ease), box-shadow 0.25s var(--mcs-ease);
    aspect-ratio: 4 / 3;
}
.cs-showcase-gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cs-showcase-gallery-tile:hover,
.cs-showcase-gallery-tile:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px var(--mcs-brand-glow), var(--mcs-shadow-card);
    outline: none;
}

/* ---------- Lightbox ---------- */
.cs-showcase-lightbox[hidden] { display: none !important; }
.cs-showcase-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 14, 33, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 40px);
}
.cs-showcase-lightbox-image {
    max-width: min(95vw, 1400px);
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: var(--mcs-radius);
    box-shadow: var(--mcs-shadow);
    background: #000;
}
.cs-showcase-lightbox-close,
.cs-showcase-lightbox-previous,
.cs-showcase-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: var(--mcs-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s var(--mcs-ease), color 0.2s var(--mcs-ease), transform 0.2s var(--mcs-ease);
    backdrop-filter: blur(8px);
}
.cs-showcase-lightbox-close { top: 20px; right: 20px; }
.cs-showcase-lightbox-previous { left: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
.cs-showcase-lightbox-next     { right: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
.cs-showcase-lightbox-close:hover,
.cs-showcase-lightbox-close:focus,
.cs-showcase-lightbox-previous:hover,
.cs-showcase-lightbox-previous:focus,
.cs-showcase-lightbox-next:hover,
.cs-showcase-lightbox-next:focus {
    background: var(--mcs-white);
    color: var(--mcs-brand-deep);
    outline: none;
}
.cs-showcase-lightbox-previous:hover { transform: translateY(-50%) translateX(-2px); }
.cs-showcase-lightbox-next:hover     { transform: translateY(-50%) translateX(2px); }
.cs-showcase-lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--mcs-white);
    border-radius: var(--mcs-radius-pill);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    margin: 0;
}

/* ---------- Address + Map ---------- */
.cs-showcase-address {
    margin: 0 0 18px;
    color: var(--mcs-ink);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.cs-showcase-map-card {
    position: relative;
    border-radius: var(--mcs-radius);
    overflow: hidden;
    box-shadow: var(--mcs-shadow-soft);
    background: var(--mcs-surface);
    aspect-ratio: 2 / 1;
}
.cs-showcase-map-card iframe,
.cs-showcase-map-canvas {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.cs-showcase-map-canvas {
    position: relative;
    background: #eef1f8;
}
.cs-showcase-map-noscript-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    text-align: center;
    color: var(--mcs-brand);
    font-weight: 600;
    text-decoration: none;
    background: #eef1f8;
}
.cs-showcase-map-noscript-link:hover,
.cs-showcase-map-noscript-link:focus {
    background: var(--mcs-brand);
    color: var(--mcs-white);
}
.cs-showcase-map-marker {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 12px;
    background: var(--mcs-brand);
    color: var(--mcs-white);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(10, 23, 51, 0.25);
    font-size: 0.78rem;
    line-height: 1.25;
    transform: translateY(-12px);
}
.cs-showcase-map-marker::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid var(--mcs-brand);
}
.cs-showcase-map-marker-label {
    font-weight: 700;
    letter-spacing: 0.3px;
}
.cs-showcase-map-marker-address {
    font-weight: 400;
    opacity: 0.92;
    font-size: 0.72rem;
}
.cs-showcase-map-trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
}
.cs-showcase-map-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}
.cs-showcase-map-trigger-pill {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    padding: 12px 26px;
    background: var(--mcs-brand);
    color: var(--mcs-white);
    border-radius: var(--mcs-radius-pill);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: var(--mcs-shadow-soft);
    transition: background 0.25s var(--mcs-ease), transform 0.25s var(--mcs-ease);
}
.cs-showcase-map-trigger:hover .cs-showcase-map-trigger-pill,
.cs-showcase-map-trigger:focus-visible .cs-showcase-map-trigger-pill {
    background: var(--mcs-brand-deep);
    transform: translateX(-50%) translateY(-2px);
}
.cs-showcase-map-trigger:focus-visible {
    outline: 3px solid var(--mcs-brand-glow);
    outline-offset: -3px;
}

/* ---------- Contact Actions ---------- */
.cs-showcase-contact-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.cs-showcase .cs-showcase-contact-actions a.cs-showcase-call-to-action,
.cs-showcase-contact-actions .cs-showcase-call-to-action {
    width: 100%;
    background: var(--mcs-brand);
    color: var(--mcs-white);
    border-color: var(--mcs-brand);
}
.cs-showcase .cs-showcase-contact-actions a.cs-showcase-call-to-action:hover,
.cs-showcase .cs-showcase-contact-actions a.cs-showcase-call-to-action:focus,
.cs-showcase-contact-actions .cs-showcase-call-to-action:hover,
.cs-showcase-contact-actions .cs-showcase-call-to-action:focus {
    background: var(--mcs-brand-deep);
    color: var(--mcs-white);
    border-color: var(--mcs-brand-deep);
}

/* ---------- Sticky Mobile Call-to-Action ---------- */
.cs-showcase-sticky-call-to-action {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: none;
    gap: 8px;
    padding: 10px max(3vw, 12px);
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--mcs-line);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px -10px rgba(11, 27, 72, 0.22);
}
.cs-showcase-sticky-call-to-action .cs-showcase-call-to-action {
    flex: 1;
    padding: 12px 18px;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    background: var(--mcs-brand);
    color: var(--mcs-white);
    border-color: var(--mcs-brand);
}

/* ---------- Footer ---------- */
.cs-showcase-footer {
    position: static;
    padding: 24px 16px;
    background: var(--mcs-brand-deep);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.cs-showcase-footer a { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.cs-showcase-footer a:hover,
.cs-showcase-footer a:focus { color: var(--mcs-white); }
.cs-showcase-footer p { margin: 0; }

/* ---------- Card Reveal Animation ---------- */
@media (prefers-reduced-motion: no-preference) {
    .cs-showcase-card {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.6s var(--mcs-ease), transform 0.6s var(--mcs-ease);
    }
    .cs-showcase-card.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .cs-showcase-definition-list { grid-template-columns: 1fr; gap: 4px 0; }
    .cs-showcase-definition-list dt { color: var(--mcs-brand); margin-top: 8px; }
    .cs-showcase-definition-list dt:first-child { margin-top: 0; }
    .cs-showcase-definition-list dd { text-align: left; }
}
@media (max-width: 720px) {
    .cs-showcase-hero { border-radius: var(--mcs-radius); margin: 14px 12px 24px; min-height: 380px; }
    .cs-showcase-hero-inner { padding: 22px; }
    .cs-showcase-shell { padding-bottom: 100px; }
    .cs-showcase-sticky-call-to-action { display: flex; }
    .cs-showcase-top-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    .cs-showcase-top-navigation .icon {
        display: block;
        position: absolute;
        right: 8px;
        top: 6px;
        font-size: 22px;
        padding: 12px;
    }
    .cs-showcase-top-navigation.responsive {
        background: rgba(10, 23, 51, 0.98);
    }
}
@media (max-width: 480px) {
    .cs-showcase-quick-facts { grid-template-columns: 1fr 1fr; }
    .cs-showcase-gallery     { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
