/* ═══════════════════════════════════════════════════════════
   SCA shared navigation + footer styles — LIGHT THEME
   White background, blue text (management feedback),
   Outfit interface font with Fraunces editorial category labels.
   Used by every page via <sca-mega-menu> / <sca-footer>.
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --sca-accent: #0ca6dd;      /* sky blue (site pair) */
    --sca-accent-deep: #0b88b6; /* deeper sky blue for hovers */
    --sca-blue: #1b2d58;
    --sca-blue-2: #364f8a;
    --sca-text: #1b2d58;
    --sca-muted: #5a6478;
    --sca-line: #e6e9f0;
    --sca-header-h: 92px;
}

/* Neutralise the WP theme's fontello list bullets (ul > li:before)
   inside our shared nav/footer components */
.sca-header li::before,
.sca-header li::after,
.sca-footer li::before,
sca-mega-menu li::before,
sca-footer li::before {
    content: none !important;
    display: none !important;
}

.sca-menu,
.sca-menu li {
    list-style: none !important;
}

/* ── Header bar — floating, 20px inset ──────── */
.sca-header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 100000;
    height: var(--sca-header-h);
    display: flex;
    align-items: center;
    font-family: 'Outfit', -apple-system, sans-serif;
    background-color: rgba(243, 243, 240, 0.94);
    background-image: linear-gradient(115deg, rgba(255,255,255,.82), rgba(221,222,219,.55)),
      radial-gradient(circle at 18% 30%, rgba(60,64,67,.055) 0 1px, transparent 1.6px),
      radial-gradient(circle at 72% 65%, rgba(60,64,67,.045) 0 1px, transparent 1.7px);
    background-size: auto, 18px 18px, 23px 23px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(27, 45, 88, 0.1), 0 1px 3px rgba(27, 45, 88, 0.05);
    transition: background 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
}

.sca-header.scrolled {
    background-color: rgba(247, 247, 244, 0.98);
    background-image: linear-gradient(115deg, rgba(255,255,255,.9), rgba(224,225,222,.46)),
      radial-gradient(circle at 24% 35%, rgba(60,64,67,.045) 0 1px, transparent 1.6px);
    background-size: auto, 20px 20px;
    height: 72px;
    box-shadow: 0 12px 40px rgba(27, 45, 88, 0.14);
}

.sca-header-inner {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sca-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sca-logo img {
    height: 58px;
    width: auto;
    transition: height 0.35s ease;
}

.sca-header.scrolled .sca-logo img {
    height: 44px;
}

/* ── Top-level menu ─────────────────────────── */
.sca-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sca-menu > li {
    position: relative;
}

.sca-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 9px 10px;
    color: var(--sca-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1px;
    white-space: nowrap;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease;
}

/* Animated underline on hover / active page */
.sca-menu > li > a::before {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--sca-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sca-menu > li:hover > a::before,
.sca-menu > li > a.sca-active::before {
    transform: scaleX(1);
}

.sca-menu > li > a.sca-active {
    color: var(--sca-accent);
}

/* Dropdown caret — only on items with a mega panel / flyout */
.sca-menu > li > a .sca-caret {
    width: 7px;
    height: 7px;
    margin-left: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s ease;
    opacity: 0.65;
    flex-shrink: 0;
}

.sca-menu > li:hover > a .sca-caret {
    transform: rotate(225deg) translateY(-2px);
}

.sca-menu > li:hover > a {
    color: var(--sca-accent);
    background: rgba(27, 45, 88, 0.05);
}

/* ── Mega panel (Products) ──────────────────── */
.sca-mega-panel {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 94px;
    border-radius: 18px;
    background-color: rgba(237, 239, 239, 0.985);
    background-image: radial-gradient(circle at 84% 8%,rgba(12,166,221,.12),transparent 30%),
      linear-gradient(135deg,rgba(255,255,255,.96),rgba(219,223,225,.94)),
      radial-gradient(circle at 18% 30%,rgba(60,64,67,.045) 0 1px,transparent 1.6px);
    background-size: auto,auto,20px 20px;
    border: 1px solid rgba(255,255,255,.82);
    box-shadow: 0 30px 80px rgba(21,39,72,.20),inset 0 1px 0 rgba(255,255,255,.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.992);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    max-height: calc(100vh - var(--sca-header-h));
    overflow-y: auto;
}

.sca-mega-panel::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 18px;
    background: transparent;
}

.sca-header.scrolled .sca-mega-panel {
    top: 94px;
}

.sca-menu > li:hover .sca-mega-panel,
.sca-menu > li:hover .sca-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sca-mega-grid {
    max-width: 1460px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sca-mega-col {
    position: relative;
    padding: 16px;
    border: 1px solid rgba(27,45,88,.075);
    border-radius: 14px;
    background: linear-gradient(155deg,rgba(255,255,255,.68),rgba(246,248,249,.44));
    box-shadow: 0 5px 18px rgba(27,45,88,.035),inset 0 1px 0 rgba(255,255,255,.9);
}

.sca-mega-col h4 {
    margin: 0 0 10px;
    font-family: 'Outfit',sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: .01em;
    text-transform: none;
    color: var(--sca-blue);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--sca-line);
}

.sca-mega-col a {
    display: block;
    position: relative;
    padding: 6px 8px;
    margin: 1px -9px;
    border-radius: 9px;
    color: var(--sca-muted);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.35;
    transition: color .2s ease,background .2s ease,transform .2s ease;
}

.sca-mega-col a:hover {
    color: var(--sca-blue);
    background: linear-gradient(90deg,rgba(12,166,221,.14),rgba(255,255,255,.42));
    transform: translateX(3px);
}

.sca-mega-col a.sca-live {
    color: var(--sca-blue);
    font-weight: 500;
}

.sca-mega-col a.sca-live::after {
    content: none;
}

/* ── Simple flyout dropdown ─────────────────── */
.sca-flyout {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    background: linear-gradient(145deg,rgba(255,255,255,.99),rgba(228,232,234,.97));
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 14px;
    box-shadow: 0 24px 52px rgba(27, 45, 88, 0.16);
    padding: 14px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}

.sca-flyout::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.sca-flyout a {
    display: block;
    padding: 9px 26px;
    color: var(--sca-muted);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.sca-flyout a:hover {
    color: var(--sca-blue);
    background: rgba(27, 45, 88, 0.05);
    padding-left: 34px;
}

/* ── Contact button ─────────────────────────── */
.sca-cta {
    flex-shrink: 0;
}

.sca-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: var(--sca-blue);
    color: #fff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.6px;
    border-radius: 30px;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.sca-cta a:hover {
    background: var(--sca-accent);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(12, 166, 221, 0.35);
}

/* ── Mobile ─────────────────────────────────── */
.sca-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.sca-burger span {
    width: 26px;
    height: 2.5px;
    background: var(--sca-blue);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 1180px) {
    .sca-menu-wrap {
        position: fixed;
        top: calc(var(--sca-header-h) + 28px);
        left: 20px;
        right: 20px;
        bottom: 20px;
        background: #ffffff;
        border-radius: 18px;
        box-shadow: 0 20px 60px rgba(27, 45, 88, 0.18);
        overflow-y: auto;
        padding: 20px 24px 60px;
        display: none;
    }

    .sca-header.open .sca-menu-wrap {
        display: block;
    }

    .sca-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .sca-menu > li > a {
        padding: 16px 8px;
        font-size: 17px;
        border-bottom: 1px solid var(--sca-line);
        border-radius: 0;
        justify-content: space-between;
    }

    .sca-mega-panel,
    .sca-flyout {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: transparent;
        display: none;
        padding: 0 0 10px;
    }

    .sca-menu > li.open .sca-mega-panel,
    .sca-menu > li.open .sca-flyout {
        display: block;
    }

    .sca-mega-grid {
        grid-template-columns: 1fr;
        padding: 16px 8px;
        gap: 24px;
    }

    .sca-burger {
        display: flex;
    }

    .sca-cta {
        display: none;
    }
}

/* ── Footer ─────────────────────────────────── */
.sca-footer {
    font-family: 'Manrope', -apple-system, sans-serif;
    background: #f7f8fb;
    border-top: 1px solid var(--sca-line);
    color: var(--sca-text);
    position: relative;
    z-index: 5;
}

.sca-footer-grid {
    max-width: 1460px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    display: grid;
    grid-template-columns: 1.05fr .62fr .62fr 1.7fr;
    gap: 38px;
}

.sca-footer-brand img {
    height: 64px;
    width: auto;
    margin-bottom: 18px;
}

.sca-footer-brand p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--sca-muted);
    max-width: 340px;
}

.sca-footer h4 {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--sca-blue);
}

.sca-footer h4::after {
    content: '';
    display: block;
    width: 34px;
    height: 2px;
    background: var(--sca-accent);
    margin-top: 8px;
}

.sca-footer-col a {
    display: block;
    padding: 6px 0;
    color: var(--sca-muted);
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.sca-footer-col a:hover {
    color: var(--sca-blue);
    padding-left: 6px;
}

.sca-footer-contact p {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--sca-muted);
}

.sca-footer-contact p + p {
    padding-top: 14px;
    border-top: 1px solid var(--sca-line);
}

.sca-footer-contact p b {
    color: var(--sca-blue);
    font-size: 12px;
}

.sca-footer-contact p strong {
    display: block;
    color: var(--sca-blue);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.sca-footer-contact a {
    color: var(--sca-muted);
    text-decoration: none;
}

.sca-footer-contact a:hover {
    color: var(--sca-accent);
}

.sca-footer-bottom {
    border-top: 1px solid var(--sca-line);
    background: #ffffff;
}

.sca-footer-bottom-inner {
    max-width: 1460px;
    margin: 0 auto;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13.5px;
    color: var(--sca-muted);
}

.sca-footer-bottom-inner a {
    color: var(--sca-muted);
    text-decoration: none;
    margin-left: 22px;
}

.sca-footer-bottom-inner a:hover {
    color: var(--sca-blue);
}

@media (max-width: 900px) {
    .sca-footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 56px 24px 40px;
    }
}

/* ── Product hover preview (circular, dark-blue ring) ─────────
   The mega panel must retain its fixed positioning from above. Making it
   relative causes the hidden grid to consume top-level navigation width. */
.sca-mega-preview {
    position: absolute;
    right: 26px;
    bottom: 26px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 4px solid var(--sca-blue, #1b2d58);
    box-shadow: 0 18px 46px rgba(27, 45, 88, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.92);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
    pointer-events: none;
    z-index: 5;
}
.sca-mega-preview.is-on { opacity: 1; visibility: visible; transform: none; }
.sca-mega-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1180px) { .sca-mega-preview { display: none; } }
