/* =====================================================================
   footer-redesign.css
   .csh-*  → "חיפוש לפי צבע" hero
   .sfd-*  → site-footer-dark
   ===================================================================== */

/* SECTION 1 — Color Search Hero */

.csh {
    background: #f8f1e3;
    padding: 64px 24px;
    position: relative;
    box-sizing: border-box;
}
.csh * { box-sizing: border-box; }

.csh-frame {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 56px;
    position: relative;
}

.csh-corner {
    position: absolute;
    width: 52px;
    height: 52px;
    background: url('/assets/img/footer-art/corner-stroke.svg') no-repeat center / contain;
    color: #c9b48f;
    pointer-events: none;
    opacity: 0.9;
}
.csh-corner--tl { top: 12px;  left: 12px;   }
.csh-corner--tr { top: 12px;  right: 12px;  transform: scaleX(-1); }
.csh-corner--bl { bottom: 12px; left: 12px;  transform: scaleY(-1); }
.csh-corner--br { bottom: 12px; right: 12px; transform: scale(-1, -1); }

.csh-head {
    text-align: center;
    margin: 0 0 44px;
    padding: 0 12px;
}
.csh-title {
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    color: #3b2a1a;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 0 0 20px;
    padding-bottom: 2px;
}
.csh-sub {
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: clamp(0.92rem, 1.1vw, 1rem);
    color: #7c6651;
    line-height: 1.65;
    max-width: 56ch;
    margin: 0 auto;
}

.csh-cards {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}
.csh-card-wrap {
    list-style: none;
    min-width: 0;
}

.csh-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    aspect-ratio: 0.62;
    min-height: 168px;
    padding: 18px 10px 14px;
    background: #fffdf7;
    border: 1px solid #e6d9c2;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.csh-card:hover {
    transform: translateY(-3px);
    border-color: #b89a6a;
    box-shadow: 0 8px 22px rgba(60, 40, 20, 0.08);
}
.csh-card:focus-visible {
    outline: 2px solid #b89a6a;
    outline-offset: 2px;
}
.csh-card:active { transform: translateY(-1px); }

.csh-swatch {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #cccccc;
    background-size: cover;
    background-position: center;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.06),
        0 4px 14px rgba(60, 40, 20, 0.08);
    flex-shrink: 0;
}
.csh-swatch--solid { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 4px 14px rgba(60, 40, 20, 0.08); }

.csh-label {
    display: block;
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #3b2a1a;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.csh-radio {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #c9b48f;
    background: #fff;
    flex-shrink: 0;
}

.csh-cta-row {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}
.csh-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fffdf7;
    border: 1px solid #c9b48f;
    border-radius: 999px;
    color: #3b2a1a;
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(60, 40, 20, 0.04);
    transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.csh-cta:hover {
    background: #faf3df;
    border-color: #b89a6a;
    box-shadow: 0 6px 18px rgba(60, 40, 20, 0.08);
    transform: translateY(-1px);
}
.csh-cta:focus-visible {
    outline: 2px solid #b89a6a;
    outline-offset: 2px;
}
.csh-cta-icon {
    width: 18px;
    height: 18px;
    color: #b89a6a;
    flex-shrink: 0;
}

@media (max-width: 1179px) {
    .csh-cards { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 899px) {
    .csh { padding: 48px 18px; }
    .csh-frame { padding: 36px 28px; }
    .csh-cards { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (max-width: 599px) {
    .csh { padding: 40px 14px; }
    .csh-frame { padding: 28px 20px; }
    .csh-corner { width: 24px; height: 24px; top: 6px; }
    .csh-corner--tl, .csh-corner--bl { left: 6px; }
    .csh-corner--tr, .csh-corner--br { right: 6px; }
    .csh-corner--bl, .csh-corner--br { bottom: 6px; top: auto; }
    .csh-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
    .csh-card { min-height: 148px; padding: 14px 8px 12px; border-radius: 12px; }
    .csh-swatch { width: 54px; height: 54px; }
    .csh-label { font-size: 0.88rem; }
    .csh-cta { padding: 12px 22px; font-size: 0.9rem; }
}


/* SECTION 2 — Site Footer Dark */

.sfd {
    position: relative;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.03), transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.02), transparent 60%),
        #1f1816;
    color: #e8dccb;
    border-top: 1px solid rgba(216, 189, 134, 0.22);
    overflow: hidden;
    margin: 0;
    box-sizing: border-box;
}
.sfd * { box-sizing: border-box; }

.sfd-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.sfd-art {
    position: absolute;
    bottom: 0;
    width: 360px;
    height: 140px;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    opacity: 0.13;
    color: #d8bd86;
}
.sfd-art--left  { left: 0;  background-image: url('/assets/img/footer-art/mountains-left.svg'); }
.sfd-art--right { right: 0; background-image: url('/assets/img/footer-art/mountains-right.svg'); }

.sfd-inner {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 56px 32px 28px;
}

.sfd-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr) 1.3fr;
    gap: 36px;
    align-items: start;
}
.sfd-col { min-width: 0; }

/* Subtle vertical separators between the four typed columns (matches sketch) */
.sfd-grid > .sfd-col + .sfd-col:not(.sfd-col--quick) {
    border-inline-start: 1px solid rgba(216, 189, 134, 0.18);
    padding-inline-start: 18px;
}

.sfd-h {
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    color: #e0c991;
    margin: 0 0 16px;
    line-height: 1.35;
}

.sfd-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sfd-list > li { min-width: 0; }

.sfd-list a,
.sfd-disabled {
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 0.94rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 200ms ease;
    display: inline-block;
    max-width: 100%;
}
.sfd-list a {
    color: #efe2cf;
}
.sfd-list a:hover { color: #fff7e8; }
.sfd-list a:focus-visible {
    outline: 2px solid #d8bd86;
    outline-offset: 2px;
    border-radius: 2px;
    color: #fff7e8;
}
.sfd-disabled {
    color: #a99a8a;
    cursor: default;
    user-select: none;
}

.sfd-col--brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.sfd-logo-link {
    display: inline-block;
    margin-bottom: 16px;
    transition: opacity 200ms ease;
}
.sfd-logo-link:hover { opacity: 0.85; }
.sfd-logo-link:focus-visible {
    outline: 2px solid #d8bd86;
    outline-offset: 4px;
    border-radius: 4px;
}
.sfd-logo {
    display: block;
    max-width: 200px;
    height: auto;
}
.sfd-tagline {
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 0.94rem;
    line-height: 1.6;
    color: #d4c4ae;
    max-width: 28ch;
    margin: 0 0 22px;
}
.sfd-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
}
.sfd-social > li { min-width: 0; }
.sfd-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(216, 189, 134, 0.32);
    color: #d8bd86;
    text-decoration: none;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.sfd-social a:hover {
    background: rgba(216, 189, 134, 0.10);
    color: #fff7e8;
    border-color: #d8bd86;
}
.sfd-social a:focus-visible {
    outline: 2px solid #d8bd86;
    outline-offset: 2px;
}
.sfd-social svg {
    width: 18px;
    height: 18px;
    display: block;
}

.sfd-col--quick {
    align-self: stretch;
    padding: 22px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(216, 189, 134, 0.32);
    border-radius: 12px;
}
.sfd-col--quick .sfd-h { margin-bottom: 14px; }

.sfd-quick {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.sfd-quick > li { min-width: 0; }
.sfd-quick > li + li {
    border-top: 1px solid rgba(216, 189, 134, 0.22);
}

.sfd-quick a,
.sfd-quick-disabled {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 4px;
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 0.94rem;
    line-height: 1.45;
    text-decoration: none;
}
.sfd-quick a {
    color: #efe2cf;
    transition: color 200ms ease, background 200ms ease;
}
.sfd-quick a:hover {
    color: #fff7e8;
}
.sfd-quick a:focus-visible {
    outline: 2px solid #d8bd86;
    outline-offset: 2px;
    border-radius: 2px;
    color: #fff7e8;
}
.sfd-quick-disabled {
    color: #a99a8a;
    cursor: default;
    user-select: none;
}
.sfd-qi {
    width: 18px;
    height: 18px;
    color: #d8bd86;
    flex-shrink: 0;
}
.sfd-quick-disabled .sfd-qi { color: rgba(216, 189, 134, 0.45); }
.sfd-quick a > span,
.sfd-quick-disabled > span {
    flex: 1 1 auto;
    min-width: 0;
}
.sfd-quick a::after {
    content: '\2039';
    color: #d8bd86;
    opacity: 0.6;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 200ms ease, opacity 200ms ease;
}
.sfd-quick a:hover::after {
    opacity: 1;
    transform: translateX(-3px);
}
html[dir="ltr"] .sfd-quick a::after {
    content: '\203A';
}
html[dir="ltr"] .sfd-quick a:hover::after {
    transform: translateX(3px);
}

.sfd-base {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(216, 189, 134, 0.22);
    text-align: center;
}
.sfd-copy {
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    color: #b9aa98;
    letter-spacing: 0.04em;
    margin: 0;
}

@media (max-width: 1099px) {
    .sfd-inner { padding: 48px 24px 24px; }
    .sfd-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 28px 32px;
    }
    .sfd-col--brand { grid-column: 1 / -1; }
    .sfd-col--quick { grid-column: 1 / -1; }
    /* Vertical separators only make sense in the wide horizontal grid.
       Once columns wrap/stack, drop them so we don't get stray vertical lines. */
    .sfd-grid > .sfd-col + .sfd-col:not(.sfd-col--quick) {
        border-inline-start: 0;
        padding-inline-start: 0;
    }
}
@media (max-width: 819px) {
    .sfd-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px 24px;
    }
    .sfd-art { width: 240px; height: 100px; opacity: 0.1; }
}
@media (max-width: 559px) {
    .sfd-inner { padding: 40px 18px 22px; }
    .sfd-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .sfd-art { display: none; }
    .sfd-col--quick { padding: 18px; }
    .sfd-tagline { max-width: 100%; }
    .sfd-base { margin-top: 28px; padding-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .csh-card,
    .csh-cta,
    .sfd-list a,
    .sfd-quick a,
    .sfd-quick a::after,
    .sfd-social a,
    .sfd-logo-link {
        transition: none;
    }
    .csh-card:hover,
    .csh-cta:hover {
        transform: none;
    }
}

/* =====================================================================
   Cascade hardening — final scoped overrides.
   The immersive skin defines `body[data-skin="immersive"] h3 { color: var(--c-text); }`
   in skins/immersive/css/global.css:18–26. That selector's specificity
   is (0,1,2), which beats the bare `.sfd-h` (0,1,0) and forces the
   column headings to render in the page text color (#1c1917) instead
   of the designed warm gold. Re-declaring under `.sfd .sfd-h` raises
   our specificity to (0,2,0) so we win on the class column (2 > 1).
   The same pattern is applied defensively to every other .sfd-* selector
   so any future skin/page-CSS rule targeting bare elements (a, p, span,
   svg) inside .sfd cannot accidentally override these colors either.
   No !important is used — specificity alone is sufficient.
   ===================================================================== */
.sfd .sfd-h {
    color: #e0c991;
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.35;
}
.sfd .sfd-list a,
.sfd .sfd-quick a {
    color: #efe2cf;
}
.sfd .sfd-list a:hover,
.sfd .sfd-quick a:hover {
    color: #fff7e8;
}
.sfd .sfd-disabled,
.sfd .sfd-quick-disabled {
    color: #a99a8a;
}
.sfd .sfd-tagline {
    color: #d4c4ae;
}
.sfd .sfd-copy {
    color: #b9aa98;
}
.sfd .sfd-social a,
.sfd .sfd-qi {
    color: #d8bd86;
}
.sfd .sfd-inner { position: relative; z-index: 2; }
.sfd .sfd-bg, .sfd .sfd-art { z-index: 0; pointer-events: none; }
