/* =====================================================
   NAVBAR  (topbar + main nav + dropdown + cascade + mega)
   Works with your navbar.html as-is. Needs Font Awesome.
   ===================================================== */
:root {
    --sjm-wine: #4a1820;
    --sjm-deep: #2f0d13;
    --sjm-rose: #d98f86;
    --sjm-cream: #fbf1ea;
    --sjm-gold: #d9b27c;
    --sjm-serif: "Cormorant Garamond", Georgia, serif;
    --sjm-sans: "Mulish", system-ui, sans-serif;
}

/* sticky must be on the placeholder: the header's parent is the placeholder */
#navbar-placeholder {
    position: sticky;
    top: 0;
    z-index: 1000
}

.site-header {
    --nav-h: 78px;
    font-family: var(--sjm-sans);
    background: #fff;
    box-shadow: 0 1px 0 #f0e1da;
    transition: box-shadow .3s
}

.site-header.is-scrolled {
    --nav-h: 66px;
    box-shadow: 0 14px 30px -20px rgba(47, 13, 19, .4)
}

.site-header ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.site-header a {
    text-decoration: none
}

/* ---------- TOP BAR ---------- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    padding: 0 5vw;
    overflow: hidden;
    background: var(--sjm-deep);
    color: var(--sjm-cream);
    transition: height .3s ease
}

.site-header.is-scrolled .topbar {
    height: 0
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 26px
}

.topbar-left a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sjm-cream);
    font-size: .82rem;
    letter-spacing: .02em;
    transition: color .25s
}

.topbar-left a i {
    color: var(--sjm-gold);
    font-size: .8rem
}

.topbar-left a:hover {
    color: var(--sjm-gold)
}

.topbar-right {
    gap: 16px
}

.topbar-right img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .7;
    transition: opacity .25s, transform .25s
}

.topbar-right a:hover img {
    opacity: 1;
    transform: translateY(-2px)
}

/* ---------- MAIN NAV ---------- */
.navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 5vw;
}

.logo a {
    display: flex;
    align-items: center
}

.logo img {
    display: block;
    height: 50px;
    width: auto;
    transition: height .3s
}

.site-header.is-scrolled .logo img {
    height: 42px
}

.nav-menu {
    display: block
}

.nav-links {
    display: flex;
    align-items: stretch;
    gap: clamp(14px, 1.8vw, 30px)
}

.nav-item {
    position: relative
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    height: var(--nav-h);
    color: var(--sjm-wine);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: color .25s, height .3s
}

.nav-link i {
    font-size: .66rem;
    transition: transform .3s
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--sjm-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease
}

.nav-item:hover>.nav-link::after,
.nav-item:focus-within>.nav-link::after {
    transform: scaleX(1)
}

.nav-item:hover>.nav-link i,
.nav-item:focus-within>.nav-link i {
    transform: rotate(180deg)
}

/* ---------- DROPDOWN (shared) ---------- */
.dropdown-menu,
.service-submenu,
.mega-menu {
    position: absolute;
    background: #fff;
    border-top: 3px solid var(--sjm-gold);
    box-shadow: 0 26px 50px -22px rgba(47, 13, 19, .4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility 0s .25s
}

.dropdown-menu {
    top: 100%;
    left: 0;
    min-width: 250px;
    padding: 10px 0;
    transform: translateY(12px);
    z-index: 20
}

.dropdown-right {
    left: auto;
    right: 0
}

.nav-item:hover>.dropdown-menu,
.nav-item:focus-within>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s
}

.dropdown-menu li a {
    display: block;
    padding: 10px 24px;
    color: #4b3438;
    font-size: 16px;
    border-left: 3px solid transparent;
    transition: background .2s, color .2s, border-color .2s, padding .2s
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible {
    background: var(--sjm-cream);
    color: var(--sjm-wine);
    border-left-color: var(--sjm-gold);
    padding-left: 28px
}

/* ---------- SERVICES CASCADE ---------- */
.services-list {
    min-width: 310px
}

.service-parent {
    position: static
}

/* submenus anchor to the whole list */
.service-parent>a {
    position: relative;
    padding-right: 40px !important
}

.service-parent>a::after {
    content: "\203A";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-52%);
    font-size: 1.2rem;
    color: var(--sjm-gold);
    transition: transform .2s
}

.service-parent:hover>a,
.service-parent:focus-within>a {
    background: var(--sjm-cream);
    color: var(--sjm-wine);
    border-left-color: var(--sjm-gold)
}

.service-parent:hover>a::after {
    transform: translate(3px, -52%)
}

.service-submenu {
    top: -3px;
    left: 100%;
    min-width: 320px;
    min-height: calc(100% + 3px);
    padding: 10px 0;
    background: #fff8f4;
    transform: translateX(10px)
}

.service-parent:hover>.service-submenu,
.service-parent:focus-within>.service-submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s
}

/* ---------- MEGA MENU ---------- */
.mega-dropdown {
    position: static
}

/* centre it on .navbar */
.mega-menu {
    top: 100%;
    left: 50%;
    width: min(980px, 94vw);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    transform: translate(-50%, 12px);
    z-index: 20
}

.mega-dropdown:hover>.mega-menu,
.mega-dropdown:focus-within>.mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s
}

.mega-column {
    padding: 32px 34px 34px
}

.mega-column+.mega-column {
    border-left: 1px solid #f0e1da
}

.mega-column h4 {
    font-family: var(--sjm-serif);
    font-weight: 600;
    font-size: 1.45rem;
    color: var(--sjm-wine);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sjm-gold)
}

.mega-group li a {
    display: block;
    padding: 7px 0;
    color: #4b3438;
    font-size: .92rem;
    transition: color .2s, padding .2s
}

.mega-group li a:hover,
.mega-group li a:focus-visible {
    color: var(--sjm-wine);
    padding-left: 8px
}

/* ---------- TOGGLE (hidden on desktop) ---------- */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--sjm-wine);
    background: none;
    color: var(--sjm-wine);
    font-size: 1.05rem;
    cursor: pointer;
    place-items: center;
    transition: background .25s, color .25s
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: var(--sjm-wine);
    color: var(--sjm-cream)
}

.site-header a:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid var(--sjm-gold);
    outline-offset: 2px
}

/* ---------- SMALL LAPTOPS ---------- */
@media(max-width:1180px) {
    .nav-link {
        font-size: .84rem
    }

    .nav-links {
        gap: 14px
    }
}

/* ---------- TABLET + MOBILE ---------- */
@media(max-width:992px) {
    .menu-toggle {
        display: grid
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
        background: #fff;
        border-top: 1px solid #f0e1da;
        box-shadow: 0 24px 40px -24px rgba(47, 13, 19, .4)
    }

    .nav-menu.open {
        display: block
    }

    .nav-links {
        flex-direction: column;
        gap: 0
    }

    .nav-link {
        height: auto;
        justify-content: space-between;
        padding: 16px 6vw;
        border-bottom: 1px solid #f6ebe5;
        font-size: .95rem
    }

    .nav-link::after {
        display: none
    }

    .nav-item:hover>.nav-link i,
    .nav-item:focus-within>.nav-link i {
        transform: none
    }

    .nav-item.active>.nav-link i {
        transform: rotate(180deg)
    }

    /* every submenu becomes an inline accordion */
    .dropdown-menu,
    .service-submenu,
    .mega-menu {
        position: static;
        display: none;
        width: auto;
        min-width: 0;
        min-height: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: 0;
        background: var(--sjm-cream)
    }

    .nav-item:hover>.dropdown-menu,
    .service-parent:hover>.service-submenu,
    .mega-dropdown:hover>.mega-menu {
        transform: none
    }

    .dropdown.active>.dropdown-menu,
    .service-parent.active>.service-submenu,
    .mega-dropdown.active>.mega-menu {
        display: block
    }

    .dropdown-menu {
        padding: 6px 0
    }

    .dropdown-menu li a {
        padding: 12px 6vw 12px 9vw
    }

    .dropdown-menu li a:hover {
        padding-left: 9vw
    }

    .service-parent>a::after {
        right: 6vw;
        transform: translateY(-52%) rotate(90deg)
    }

    .service-parent.active>a::after {
        transform: translateY(-52%) rotate(-90deg)
    }

    .service-submenu {
        background: #f5e6dd;
        padding: 4px 0
    }

    .service-submenu li a,
    .service-submenu li a:hover {
        padding-left: 13vw
    }

    .mega-column {
        padding: 18px 6vw 6px
    }

    .mega-column+.mega-column {
        border-left: 0
    }

    .mega-column h4 {
        font-size: 1.2rem
    }

    .mega-dropdown .mega-menu {
        width: auto
    }
}

@media(max-width:700px) {
    .topbar-right {
        display: none
    }
}

@media(max-width:480px) {
    .topbar-left a:nth-child(2) {
        display: none
    }

    .logo img {
        height: 42px
    }
}

@media(prefers-reduced-motion:reduce) {

    .site-header *,
    .site-header *::after {
        transition: none !important
    }
}


/* =====================================================
   FOOTER  (.sjm-footer) – loaded from /footer.html
   Uses the same :root colour/font variables as the rest of the site.
   ===================================================== */
.sjm-footer {
    position: relative;
    background: var(--sjm-deep);
    color: var(--sjm-cream);
    font-family: var(--sjm-sans);
    border-top: 3px solid var(--sjm-gold)
}

.sjm-footer ul {
    list-style: none;
    margin: 20px 0;
    padding: 0
}

.sjm-footer a {
    color: inherit;
    text-decoration: none
}

.sjm-footer a:focus-visible,
.sjm-footer button:focus-visible {
    outline: 2px solid var(--sjm-gold);
    outline-offset: 3px
}

.sjm-footer__main {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 90px) 5vw clamp(40px, 5vw, 64px);
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 2.6fr);
    gap: clamp(36px, 5vw, 80px)
}

/* ---------- brand column ---------- */
.sjm-footer__logo {
    display: inline-block;
    padding: 10px 16px
}

.sjm-footer__logo img {
    display: block;
    height: 46px;
    width: auto
}

.sjm-footer__brand p {
    margin: 22px 0;
    line-height: 1.75;
    opacity: .78;
    font-size: .95rem;
    max-width: 340px
}

.sjm-footer__contact {
    display: grid;
    gap: 12px;
    margin-bottom: 26px
}

.sjm-footer__contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .92rem
}

.sjm-footer__contact i {
    color: var(--sjm-gold);
    width: 16px;
    text-align: center
}

.sjm-footer__contact a {
    transition: color .25s
}

.sjm-footer__contact a:hover {
    color: var(--sjm-gold)
}

.sjm-footer__social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.sjm-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(217, 178, 124, .45);
    transition: background .3s, border-color .3s, transform .3s
}

.sjm-footer__social img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter .3s
}

.sjm-footer__social a:hover {
    background: var(--sjm-gold);
    border-color: var(--sjm-gold);
    transform: translateY(-3px)
}

.sjm-footer__social a:hover img {
    filter: brightness(0)
}

/* ---------- link columns ---------- */
.sjm-footer__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px clamp(24px, 3vw, 48px);
    align-content: start
}

.sjm-footer__col h4 {
    font-family: var(--sjm-serif);
    font-weight: 600;
    font-size: 1.45rem;
    color: var(--sjm-cream);
    margin: 0 0 18px;
    padding-bottom: 12px;
    position: relative
}

.sjm-footer__col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--sjm-gold)
}

.sjm-footer__gap {
    margin-top: 34px !important
}

.sjm-footer__col li a {
    display: inline-block;
    padding: 5px 0;
    font-size: .92rem;
    opacity: .78;
    transition: opacity .25s, color .25s, transform .25s
}

.sjm-footer__col li a:hover,
.sjm-footer__col li a:focus-visible {
    opacity: 1;
    color: var(--sjm-gold);
    transform: translateX(5px)
}

/* ---------- bottom bar ---------- */
.sjm-footer__bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 5vw;
    border-top: 1px solid rgba(251, 241, 234, .14);
    font-size: .86rem
}

.sjm-footer__bar p {
    opacity: .7
}

.sjm-footer__bar ul {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: 60px
}

.sjm-footer__bar ul a {
    opacity: .78;
    transition: color .25s, opacity .25s
}

.sjm-footer__bar ul a:hover {
    color: var(--sjm-gold);
    opacity: 1
}

.sjm-footer__top {
    position: absolute;
    right: 5vw;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--sjm-gold);
    background: none;
    color: var(--sjm-gold);
    cursor: pointer;
    transition: background .3s, color .3s
}

.sjm-footer__top:hover {
    background: var(--sjm-gold);
    color: var(--sjm-deep)
}

/* ---------- responsive ---------- */
@media(max-width:1000px) {
    .sjm-footer__main {
        grid-template-columns: 1fr
    }

    .sjm-footer__brand p {
        max-width: 520px
    }
}

@media(max-width:700px) {
    .sjm-footer__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 24px
    }
}

@media(max-width:480px) {
    .sjm-footer__links {
        grid-template-columns: 1fr
    }

    .sjm-footer__bar {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 5vw;
        padding-bottom: 78px
    }

    .sjm-footer__bar ul {
        margin: 0;
        gap: 18px
    }

    .sjm-footer__top {
        top: auto;
        bottom: 20px;
        transform: none
    }
}

@media(prefers-reduced-motion:reduce) {
    .sjm-footer * {
        transition: none !important
    }
}