/* ==========================================================================
   New Dell'Oro site look (header, footer, contact section).
   Used by Views/Shared/_LoginLayout2.cshtml. Everything is scoped under .ns
   so it cannot affect pages that still use the old layout.
   ========================================================================== */

/* Fonts: same files the new WordPress site loads.
   TODO: self-host these (Content/fonts) before the staging site goes away. */
@font-face {
    font-family: 'Season';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url('https://delloro-dev.mystagingwebsite.com/wp-content/uploads/2026/08/SeasonMix-Regular.woff2') format('woff2'),
         url('https://delloro-dev.mystagingwebsite.com/wp-content/uploads/2026/08/SeasonMix-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://delloro-dev.mystagingwebsite.com/wp-content/uploads/2026/08/Geist-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('https://delloro-dev.mystagingwebsite.com/wp-content/uploads/2026/08/Geist-Medium.ttf') format('truetype');
}

.ns {
    --ns-ink: #000F14;
    --ns-text: #363532;
    --ns-red: #881517;
    --ns-red-dark: #4F1012;
    --ns-tint: #F3E8E8;
    --ns-cream: #F8F3ED;
    --ns-line: #E2DDD8;
    margin: 0;
    background: #ffffff;
    color: var(--ns-ink);
    font-family: 'Geist', Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
}

.ns *, .ns *::before, .ns *::after { box-sizing: border-box; }
.ns a { color: inherit; }
.ns img { max-width: 100%; }

/* ---------- Top bar ---------- */
.ns .ns-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    height: 38px;
    padding: 0 16px;
    background: var(--ns-red-dark);
}
.ns .ns-topbar a {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 16px;
    line-height: 18px;
    text-decoration: none;
}
.ns .ns-topbar a:hover,
.ns .ns-topbar a:focus { text-decoration: underline; }
.ns .ns-topbar svg { width: 22px; height: 22px; fill: #ffffff; }

/* ---------- Header ---------- */
/* Top bar and header pin together as one block */
.ns .ns-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
}
.ns .ns-header {
    position: relative;
    background: #ffffff;
}
.ns .ns-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 16px;
}
.ns .ns-logo { flex: 0 0 auto; display: block; }
.ns .ns-logo img { display: block; width: 222px; height: 34px; object-fit: contain; }

.ns .ns-panel {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.ns .ns-toggle {
    display: none;
    padding: 4px;
    background: none;
    border: 0;
    cursor: pointer;
    line-height: 0;
}
.ns .ns-toggle svg { width: 24px; height: 24px; fill: var(--ns-ink); }

.ns .ns-nav-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ns .ns-nav-item { position: relative; }
.ns .ns-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: none;
    border: 0;
    border-radius: 4px;
    color: var(--ns-ink);
    font: inherit;
    font-size: 16px;
    line-height: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.5s;
}
.ns .ns-nav-link svg { width: 10px; height: 10px; fill: currentColor; }
.ns .ns-nav-link:hover,
.ns .ns-nav-item.is-open > .ns-nav-link { background: var(--ns-tint); }

.ns .ns-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #ffffff;
    border-top: 1px solid var(--ns-cream);
    border-bottom: 1px solid var(--ns-cream);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.ns .ns-nav-item.is-open > .ns-sub { display: block; }
.ns .ns-sub a {
    display: block;
    padding: 10px 16px;
    border-radius: 4px;
    color: var(--ns-ink);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.5s;
}
.ns .ns-sub a:hover,
.ns .ns-sub a:focus { background: var(--ns-tint); }

@media (min-width: 1025px) and (hover: hover) {
    .ns .ns-nav-item:hover > .ns-sub { display: block; }
    .ns .ns-nav-item:hover > .ns-nav-link { background: var(--ns-tint); }
}

.ns .ns-actions { display: flex; flex: 0 0 auto; gap: 12px; }
.ns .ns-btn {
    display: inline-block;
    padding: 18.5px 16px;
    border: 1px solid var(--ns-red);
    border-radius: 4px;
    font-size: 16px;
    line-height: 18px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.5s;
}
.ns .ns-btn-primary { background: var(--ns-red); color: #ffffff; }
.ns .ns-btn-primary:hover,
.ns .ns-btn-primary:focus { background: var(--ns-red-dark); border-color: var(--ns-red-dark); color: #ffffff; }
.ns .ns-btn-outline { background: #ffffff; color: var(--ns-red); }
.ns .ns-btn-outline:hover,
.ns .ns-btn-outline:focus { background: var(--ns-tint); color: var(--ns-red); }

/* ---------- Page body ---------- */
.ns .ns-main {
    padding: 96px 16px;
    text-align: center;
}

/* ---------- Contact information ---------- */
.ns .ns-contact { padding: 0 16px; background: var(--ns-cream); }
.ns .ns-contact-inner { max-width: 1140px; margin: 0 auto; padding: 96px 0; }
.ns .ns-contact h2,
.ns .ns-contact h3 {
    margin: 0;
    font-family: 'Season', Georgia, serif;
    font-weight: 400;
    color: var(--ns-ink);
}
.ns .ns-contact h2 { font-size: 56px; line-height: 64px; text-align: center; }
.ns .ns-contact h3 { margin-top: 24px; font-size: 32px; line-height: 40px; }
.ns .ns-contact-cols {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin: 64px 32px 0;
}
.ns .ns-contact-col { flex: 1 1 0; text-align: center; }
.ns .ns-contact-col img { display: block; width: 56px; height: 56px; margin: 0 auto; object-fit: contain; }
.ns .ns-contact-col p { margin: 0; }
.ns .ns-contact a { color: var(--ns-ink); text-decoration: underline; }
.ns .ns-contact hr { margin: 64px 0 0; border: 0; border-top: 1px solid var(--ns-line); }
.ns .ns-follow { text-align: center; }
.ns .ns-follow h3 { margin-top: 48px; }
.ns .ns-follow p { margin: 12px 0 0; color: var(--ns-text); }
.ns .ns-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.ns .ns-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--ns-red);
    border: 1px solid var(--ns-red);
    border-radius: 4px;
    transition: all 0.5s;
}
.ns .ns-social a:hover,
.ns .ns-social a:focus { background: var(--ns-red-dark); border-color: var(--ns-red-dark); }
.ns .ns-social svg { width: 20px; height: 20px; fill: #ffffff; }

/* ---------- WeChat QR popup ---------- */
.ns .ns-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 15, 20, 0.6);
}
.ns .ns-modal[hidden] { display: none; }
.ns .ns-modal-box {
    position: relative;
    width: 100%;
    max-width: 530px;
    padding: 40px 40px 36px;
    background: #ffffff;
    border-radius: 0;
    text-align: center;
}
.ns .ns-modal-box h2 { margin: 0; font-family: 'Season', Georgia, serif; font-size: 32px; line-height: 38px; font-weight: 400; color: #000F14; }
.ns .ns-modal-box p { margin: 16px 0 0; font-size: 16px; line-height: 24px; color: var(--ns-text); }
.ns .ns-modal-box img { display: block; width: 100%; max-width: 272px; height: auto; margin: 24px auto 0; }
.ns .ns-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.ns .ns-modal-close svg { width: 24px; height: 24px; fill: #000F14; }
.ns .ns-modal-close:hover svg,
.ns .ns-modal-close:focus svg { fill: var(--ns-red); }
body.ns.ns-modal-open { overflow: hidden; }

/* ---------- Footer ---------- */
.ns .ns-footer { padding: 80px 16px; background: #ffffff; }
.ns .ns-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1140px;
    margin: 0 auto;
}
.ns .ns-footer-cols {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    max-width: 775px;
}
.ns .ns-footer-col:nth-child(1) { flex: 0 0 267px; }
.ns .ns-footer-col:nth-child(2) { flex: 0 0 170px; }
.ns .ns-footer-col:nth-child(3) { flex: 0 0 270px; }
.ns .ns-footer-group + .ns-footer-group { margin-top: 48px; }
.ns .ns-footer h4 {
    margin: 0;
    color: var(--ns-text);
    font-size: 16px;
    line-height: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.ns .ns-footer ul { margin: 0; padding: 0; list-style: none; }
.ns .ns-footer h4 + ul { margin-top: 12px; }
.ns .ns-footer li + li { margin-top: 8px; }
.ns .ns-footer a { color: var(--ns-ink); text-decoration: none; transition: color 0.5s; }
.ns .ns-footer a:hover,
.ns .ns-footer a:focus { color: var(--ns-red); }
.ns .ns-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}
.ns .ns-legal { display: flex; flex-wrap: wrap; gap: 24px; }
.ns .ns-legal li + li { margin-top: 0; }
.ns .ns-footer-bottom p { margin: 24px 0 0; color: var(--ns-text); }
.ns .ns-footer-logo img { display: block; width: auto; height: 67px; }

/* ---------- Back to top ---------- */
.ns .ns-top { position: fixed; right: 30px; bottom: 30px; z-index: 900; display: block; width: 48px; height: 48px; }
.ns .ns-top img { display: block; width: 48px; height: 48px; }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 1024px) {
    .ns .ns-toggle { display: block; }
    .ns .ns-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding: 16px;
        background: #ffffff;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    .ns .ns-header.is-open .ns-panel { display: flex; }
    .ns .ns-nav-list { flex-direction: column; }
    .ns .ns-nav-link { width: 100%; justify-content: space-between; padding: 12px 8px; }
    .ns .ns-sub {
        position: static;
        min-width: 0;
        padding: 0 0 0 16px;
        border: 0;
        box-shadow: none;
    }
    .ns .ns-sub a { white-space: normal; }
    .ns .ns-actions { flex-direction: column; }

    .ns .ns-main { padding: 48px 16px; }

    .ns .ns-contact-inner { padding: 48px 0; }
    .ns .ns-contact h2 { font-size: 40px; line-height: 42px; letter-spacing: -1px; }
    .ns .ns-contact h3 { margin-top: 16px; }
    .ns .ns-contact-cols { flex-direction: column; align-items: center; gap: 40px; margin: 64px 0 0; }
    .ns .ns-contact-col { flex: 0 0 auto; }
    .ns .ns-contact-col img { width: 40px; height: 40px; }

    .ns .ns-footer { padding: 48px 16px; }
    .ns .ns-footer-inner { gap: 48px; }
    .ns .ns-footer-cols { flex-direction: column; gap: 48px; max-width: none; }
    .ns .ns-footer-col:nth-child(n) { flex: 0 0 auto; }
    .ns .ns-footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
    .ns .ns-legal { flex-direction: column; gap: 24px; }
}
