/* OUTSAUCE shared site chrome: header, menu, footer, cookie banner.
   One copy for every page. Edit here, not in the individual pages. */

@font-face {
    font-family: 'Now Black';
    src: url('https://outsauce.co/Now-Black.woff2') format('woff2'), url('https://outsauce.co/Now-Black.woff') format('woff');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

:root {
    --os-pink: #ee0979;
    --os-ink: #111827;
    --os-header-h: 100px;
}

html { scroll-padding-top: calc(var(--os-header-h) + 16px); }
/* Older page styles padded the body for a fixed header; the shared header sits in the page flow. */
body { padding-top: 0 !important; }
html.os-menu-open, html.os-menu-open body { overflow: hidden; }

/* ---------- HEADER ---------- */
.os-header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    width: 100%;
    height: var(--os-header-h);
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    padding: 0 96px;
    background: #ffffff;
    color: var(--os-ink);
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.os-header--overlay {
    position: absolute;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

.os-header__side {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.os-header__side:first-child { justify-self: end; }
.os-header__side:nth-child(3) { justify-self: start; }
.os-header__side span { opacity: 0.4; }
.os-header__side:hover { opacity: 0.7; }
.os-header__side[aria-current="page"] { border-bottom-color: currentColor; }

.os-header__logo { grid-column: 2; display: block; line-height: 0; }
.os-header__logo img {
    display: block;
    height: 60px;
    width: auto;
    max-width: none;
    transition: filter 0.3s ease;
}
.os-header--overlay .os-header__logo img { filter: brightness(0) invert(1); }

.os-header a:focus-visible,
.os-burger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 6px;
}

/* Hamburger: shown at every screen size so the full menu is always one tap away */
.os-burger {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.os-burger svg {
    display: block;
    width: 44px;
    height: 44px;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.os-burger path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.os-burger .os-burger__curl { stroke-dasharray: 12 63; }
.os-burger[aria-expanded="true"] svg { transform: rotate(-45deg); }
.os-burger[aria-expanded="true"] .os-burger__curl { stroke-dasharray: 20 300; stroke-dashoffset: -32.42; }

/* Header while the menu is open: sits above the menu, white on pink */
html.os-menu-open .os-header {
    z-index: 1002;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}
/* The overlay header scrolls with the page, so pin it while the menu is open */
html.os-menu-open .os-header--overlay { position: fixed; }
html.os-menu-open .os-header__logo img { filter: brightness(0) invert(1); }
html.os-menu-open .os-header__side { visibility: hidden; }

/* ---------- MENU ---------- */
.os-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--os-header-h) + 8px) 24px 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--os-pink);
    color: #ffffff;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
}
html.os-menu-open .os-nav {
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.os-nav__list {
    list-style: none;
    margin: auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.os-nav__list li { margin: 0; padding: 0; }
.os-nav__list a {
    display: inline-block;
    padding: 12px 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    border-bottom: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.os-nav__list a span { opacity: 0.45; }
.os-nav__list a:hover { opacity: 0.75; }
.os-nav__list a[aria-current="page"] { border-bottom-color: #ffffff; }
.os-nav a:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; border-radius: 6px; }
.os-nav__contact {
    margin: 28px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.4;
}
.os-nav__contact a { color: #ffffff; text-decoration: none; padding: 6px 4px; opacity: 0.9; }
.os-nav__contact a:hover { text-decoration: underline; opacity: 1; }

/* ---------- FOOTER ---------- */
.os-footer {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: auto auto 0;
    padding: 80px 40px 40px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    color: #4b5563;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}
.os-footer__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}
.os-footer__logo { display: block; line-height: 0; }
.os-footer__logo img { display: block; height: 120px; width: auto; max-width: none; }
.os-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.os-footer__col { min-width: 150px; }
.os-footer__col h2 {
    margin: 0 0 15px;
    font-family: 'Now Black', sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--os-ink);
}
.os-footer__col ul { list-style: none; margin: 0; padding: 0; }
.os-footer__col li { margin: 0 0 8px; padding: 0; }
.os-footer a { color: #4b5563; text-decoration: none; transition: color 0.2s ease; }
.os-footer a:hover { color: var(--os-pink); }
.os-footer a:focus-visible, .os-footer button:focus-visible { outline: 2px solid var(--os-pink); outline-offset: 2px; border-radius: 4px; }
.os-footer__bar {
    margin: 40px 0 0;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 12px;
    line-height: 1.9;
    color: #6b7280;
}
.os-footer__bar a, .os-footer__bar button {
    color: #6b7280;
    text-decoration: underline;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}
.os-footer__bar button:hover { color: var(--os-pink); }
.os-footer__sep { margin: 0 6px; opacity: 0.5; }

/* ---------- COOKIE BANNER ---------- */
.os-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    box-sizing: border-box;
    max-width: 560px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #ffffff;
    color: var(--os-ink);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}
.os-cookie[hidden], html.os-menu-open .os-cookie { display: none; }
.os-cookie p { margin: 0; color: var(--os-ink); }
.os-cookie a { color: #be185d; text-decoration: underline; }
.os-cookie__actions { display: flex; gap: 10px; }
.os-cookie__actions button {
    flex: 1;
    padding: 10px 18px;
    border-radius: 9999px;
    border: 2px solid var(--os-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}
.os-cookie__actions button[data-consent="denied"] { background: #ffffff; color: var(--os-ink); }
.os-cookie__actions button[data-consent="granted"] { background: var(--os-ink); color: #ffffff; }
.os-cookie__actions button:focus-visible { outline: 3px solid var(--os-pink); outline-offset: 2px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    :root { --os-header-h: 76px; }
    .os-header { padding: 0 76px; gap: 0; }
    .os-header__side { display: none; }
    .os-header__logo img { height: 46px; }
    .os-burger { right: 14px; }
    .os-footer { padding: 56px 24px 32px; }
    .os-footer__main { flex-direction: column; align-items: center; }
    .os-footer__logo img { height: 96px; }
    .os-footer__cols { justify-content: center; text-align: center; gap: 36px 48px; width: 100%; }
}
@media (max-width: 520px) {
    .os-footer__cols { flex-direction: column; align-items: center; gap: 32px; }
    .os-footer__sep { display: none; }
    .os-footer__bar span, .os-footer__bar a, .os-footer__bar button { display: inline-block; margin: 0 8px; }
}
@media (max-height: 620px) {
    .os-nav__list { gap: 0; }
    .os-nav__list a { font-size: 18px; padding: 9px 10px; }
    .os-nav__contact { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .os-header, .os-nav, .os-burger svg, .os-burger path, .os-header__logo img { transition: none !important; }
}
