/* ==========================================================================
   Dhillon's design system — tokens + site chrome (header, footer, buttons).
   Loaded on every front-end page because the header and footer are global.
   Page-specific styling lives in its own stylesheet (see css/home.css).
   Everything here is namespaced `dh-` so it cannot collide with the legacy
   theme in css/styles.css, which is still in charge of the inner pages.
   ========================================================================== */

:root {
    /* Brand red — the one owned colour */
    --dh-red-50: #fdf1f1;
    --dh-red-500: #ca0002;
    --dh-red-600: #a90002;
    --dh-red-700: #8b0002;

    /* Neutral ink */
    --dh-ink-0: #ffffff;
    --dh-ink-50: #f7f7f7;
    --dh-ink-100: #e8e8e8;
    --dh-ink-300: #a8a8a8;
    --dh-ink-400: #777777;
    --dh-ink-500: #555555;
    --dh-ink-800: #151515;
    --dh-ink-900: #0d0e10;

    /* Promotional accent — used sparingly, never next to the red */
    --dh-gold-500: #f5a400;

    /* Semantic roles */
    --dh-text-primary: var(--dh-ink-800);
    --dh-text-secondary: var(--dh-ink-500);
    --dh-text-muted: var(--dh-ink-400);
    --dh-text-brand: var(--dh-red-500);
    --dh-surface-page: var(--dh-ink-0);
    --dh-surface-sunken: var(--dh-ink-50);
    --dh-surface-card: var(--dh-ink-0);
    --dh-surface-brand: var(--dh-red-500);
    --dh-surface-inverse: var(--dh-ink-900);
    --dh-border-subtle: var(--dh-ink-100);
    --dh-border-onbrand: rgba(255, 255, 255, 0.55);

    /* Type */
    --dh-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --dh-weight-regular: 400;
    --dh-weight-medium: 500;
    --dh-weight-semibold: 600;
    --dh-weight-bold: 700;
    --dh-weight-black: 800;
    --dh-tracking-display: -0.03em;
    --dh-tracking-eyebrow: 0.12em;
    --dh-leading-hero: 0.95;

    /* Layout */
    --dh-container: 1280px;
    --dh-container-wide: 1400px;
    --dh-gutter: clamp(20px, 4vw, 56px);
    --dh-section-y: clamp(56px, 7vw, 104px);
    --dh-header-height: 64px;

    /* Shape */
    --dh-radius-button: 8px;
    --dh-radius-card: 12px;
    --dh-radius-panel: 16px;
    --dh-radius-pill: 999px;

    /* Depth — food photography carries the depth, not the UI */
    --dh-shadow-card: 0 8px 28px rgba(0, 0, 0, 0.06);
    --dh-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
    --dh-shadow-header: 0 8px 28px rgba(0, 0, 0, 0.14);

    /* Motion */
    --dh-duration-fast: 140ms;
    --dh-duration-base: 220ms;
    --dh-ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (min-width: 1080px) {
    :root {
        --dh-header-height: 104px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --dh-duration-fast: 0ms;
        --dh-duration-base: 0ms;
    }
}

/* --------------------------------------------------------------------------
   Primitives
   -------------------------------------------------------------------------- */

.dh-container {
    width: 100%;
    max-width: var(--dh-container);
    margin: 0 auto;
    padding-inline: var(--dh-gutter);
}

.dh-container--wide {
    max-width: var(--dh-container-wide);
}

.dh-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Icons come from the Font Awesome sheet the layout already loads. This just
   gives them a fixed box so labels line up whatever glyph is used. */
.dh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    flex: none;
}

/* Bootstrap loads after css/styles.css and paints every bare link its own blue,
   which is why the legacy sheet's link colour never took effect. This sheet
   loads last, so the brand colour finally wins. Components that set their own
   colour use a class and still beat this. */
a {
    color: var(--dh-text-brand);
}

a:hover,
a:focus {
    color: var(--dh-red-600);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.dh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: var(--dh-radius-button);
    font: var(--dh-weight-semibold) 16px/1 var(--dh-font);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--dh-duration-fast) var(--dh-ease),
        color var(--dh-duration-fast) var(--dh-ease),
        border-color var(--dh-duration-fast) var(--dh-ease),
        transform var(--dh-duration-base) var(--dh-ease),
        box-shadow var(--dh-duration-base) var(--dh-ease);
}

.dh-btn:hover,
.dh-btn:focus {
    text-decoration: none;
}

.dh-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--dh-shadow-hover);
}

.dh-btn:active {
    transform: none;
    box-shadow: none;
}

@media (min-width: 768px) {
    .dh-btn--lg {
        min-height: 52px;
        padding-inline: 30px;
        font-size: 17px;
    }
}

.dh-btn--sm {
    min-height: 44px;
    padding-inline: 18px;
    font-size: 15px;
}

.dh-btn--block {
    width: 100%;
}

.dh-btn--primary {
    background: var(--dh-red-500);
    color: var(--dh-ink-0);
}

.dh-btn--primary:hover,
.dh-btn--primary:focus {
    background: var(--dh-red-600);
    color: var(--dh-ink-0);
}

.dh-btn--primary:active {
    background: var(--dh-red-700);
}

.dh-btn--secondary {
    background: var(--dh-ink-0);
    border-color: var(--dh-red-500);
    color: var(--dh-red-500);
}

.dh-btn--secondary:hover,
.dh-btn--secondary:focus {
    background: var(--dh-red-50);
    color: var(--dh-red-600);
    border-color: var(--dh-red-600);
}

/* White fill, for use on red or charcoal panels. */
.dh-btn--onbrand {
    background: var(--dh-ink-0);
    color: var(--dh-red-500);
}

.dh-btn--onbrand:hover,
.dh-btn--onbrand:focus {
    background: var(--dh-gold-500);
    color: var(--dh-ink-900);
}

.dh-btn--onbrand-outline {
    background: transparent;
    border-color: var(--dh-border-onbrand);
    color: var(--dh-ink-0);
}

.dh-btn--onbrand-outline:hover,
.dh-btn--onbrand-outline:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--dh-ink-0);
    color: var(--dh-ink-0);
}

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */

.dh-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--dh-surface-brand);
    box-shadow: var(--dh-shadow-header);
    font-family: var(--dh-font);
}

.dh-header__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--dh-header-height);
    padding-block: 8px;
}

.dh-header__logo {
    display: block;
    flex: none;
    margin-right: auto;
}

.dh-header__logo img {
    display: block;
    width: auto;
    height: 52px;
    object-fit: contain;
}

.dh-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.dh-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 24px;
    color: var(--dh-ink-0);
    background: transparent;
    border: 2px solid var(--dh-border-onbrand);
    border-radius: var(--dh-radius-button);
    cursor: pointer;
    transition: background-color var(--dh-duration-fast) var(--dh-ease),
        border-color var(--dh-duration-fast) var(--dh-ease);
}

.dh-header__toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--dh-ink-0);
}

.dh-header__toggle .dh-icon--close,
.dh-header__toggle[aria-expanded="true"] .dh-icon--open {
    display: none;
}

.dh-header__toggle[aria-expanded="true"] .dh-icon--close {
    display: block;
}

/* Basket shortcut — only rendered when the visitor has an open ticket. */
.dh-header__basket {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--dh-ink-0);
    font-size: 19px;
    border-radius: var(--dh-radius-button);
    transition: background-color var(--dh-duration-fast) var(--dh-ease);
}

.dh-header__basket:hover,
.dh-header__basket:focus {
    background: rgba(255, 255, 255, 0.14);
    color: var(--dh-ink-0);
    text-decoration: none;
}

.dh-header__basket-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 19px;
    padding: 0 5px;
    background: var(--dh-ink-0);
    color: var(--dh-red-500);
    border-radius: var(--dh-radius-pill);
    font: var(--dh-weight-bold) 11px/19px var(--dh-font);
    text-align: center;
}

/* Navigation — a stacked panel on mobile, an inline row from 1080px up. */
.dh-header__nav {
    display: none;
    order: 3;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.dh-header__nav.is-open {
    display: block;
}

.dh-nav__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 4px 0 12px;
    list-style: none;
}

.dh-nav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0;
    color: var(--dh-ink-0);
    font: var(--dh-weight-semibold) 17px/1.2 var(--dh-font);
    text-align: left;
    text-decoration: none;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: color var(--dh-duration-fast) var(--dh-ease);
}

.dh-nav__link:hover,
.dh-nav__link:focus {
    color: var(--dh-gold-500);
    text-decoration: none;
}

/* Account chip — the signed-in state. The monogram is always visible; the name
   and points balance appear once the header has room for them. The gold ring
   marks a balance that has crossed the 500-point (£5) redemption threshold. */
.dh-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 2px;
    border-radius: var(--dh-radius-pill);
    color: var(--dh-ink-0);
    text-decoration: none;
    transition: background-color var(--dh-duration-fast) var(--dh-ease),
        transform var(--dh-duration-base) var(--dh-ease);
}

.dh-account:hover,
.dh-account:focus {
    background: rgba(255, 255, 255, 0.14);
    color: var(--dh-ink-0);
    text-decoration: none;
    transform: translateY(-1px);
}

.dh-account__monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    background: var(--dh-ink-0);
    color: var(--dh-red-500);
    font: var(--dh-weight-black) 15px/1 var(--dh-font);
    letter-spacing: 0.02em;
    transition: box-shadow var(--dh-duration-base) var(--dh-ease);
}

.dh-account.is-redeemable .dh-account__monogram {
    box-shadow: 0 0 0 2px var(--dh-surface-brand), 0 0 0 4px var(--dh-gold-500);
}

.dh-account__detail {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-right: 10px;
    min-width: 0;
}

.dh-account__name {
    max-width: 15ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: var(--dh-weight-bold) 15px/1.2 var(--dh-font);
}

.dh-account__points {
    font: var(--dh-weight-semibold) 12px/1.2 var(--dh-font);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    color: var(--dh-gold-500);
    white-space: nowrap;
}

@media (min-width: 700px) {
    .dh-account__detail {
        display: flex;
    }
}

@media (min-width: 1080px) {
    .dh-header__bar {
        gap: 24px;
    }

    .dh-header__logo {
        margin-right: 0;
    }

    .dh-header__logo img {
        height: 76px;
    }

    .dh-header__toggle {
        display: none;
    }

    .dh-header__nav {
        display: block;
        order: 0;
        flex: 1;
        min-width: 0;
        width: auto;
        border-top: 0;
    }

    .dh-header__actions {
        margin-left: auto;
    }

    .dh-nav__list {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: clamp(12px, 1.8vw, 30px);
        padding: 0;
    }

    .dh-nav__link {
        width: auto;
        padding: 0 0 6px;
        border: 0;
        border-bottom: 2px solid transparent;
        font-size: 18px;
        white-space: nowrap;
        transition: border-color var(--dh-duration-fast) var(--dh-ease),
            color var(--dh-duration-fast) var(--dh-ease);
    }

    .dh-nav__link:hover,
    .dh-nav__link:focus {
        color: var(--dh-ink-0);
        border-bottom-color: rgba(255, 255, 255, 0.5);
    }

    .dh-nav__link.is-active {
        border-bottom-color: var(--dh-ink-0);
    }
}

/* The add-to-basket banner is shared with the legacy theme; inside the sticky
   header its old negative margin would pull page content underneath it. */
.dh-header #productCartMsg {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Site footer
   -------------------------------------------------------------------------- */

.dh-footer {
    background: var(--dh-surface-brand);
    color: var(--dh-ink-0);
    border-top: 0;
    padding: 0;
    font-family: var(--dh-font);
}

.dh-footer__main {
    padding-block: clamp(44px, 5vw, 72px);
}

.dh-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    justify-items: center;
    text-align: center;
}

.dh-footer__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.dh-footer__logo {
    display: block;
    width: auto;
    height: 78px;
    object-fit: contain;
}

.dh-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.dh-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 20px;
    color: var(--dh-ink-0);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: color var(--dh-duration-fast) var(--dh-ease),
        background-color var(--dh-duration-base) var(--dh-ease),
        border-color var(--dh-duration-base) var(--dh-ease);
}

.dh-footer__social-link:hover,
.dh-footer__social-link:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--dh-gold-500);
    color: var(--dh-gold-500);
    text-decoration: none;
}

.dh-footer__payment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.dh-footer__payment-label {
    font: var(--dh-weight-semibold) 13px/1.4 var(--dh-font);
    letter-spacing: var(--dh-tracking-eyebrow);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.dh-footer__payment img {
    display: block;
    width: auto;
    height: 40px;
    padding: 6px 12px;
    background: var(--dh-ink-0);
    border-radius: var(--dh-radius-button);
    object-fit: contain;
}

.dh-footer h3.dh-footer__heading {
    margin: 0 0 16px;
    font: var(--dh-weight-bold) 24px/1.3 var(--dh-font);
    letter-spacing: 0;
    color: var(--dh-ink-0);
}

.dh-footer__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: inherit;
}

.dh-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--dh-ink-0);
    font: var(--dh-weight-regular) 17px/1.7 var(--dh-font);
    transition: color var(--dh-duration-fast) var(--dh-ease);
}

.dh-footer__link:hover,
.dh-footer__link:focus {
    color: var(--dh-gold-500);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dh-footer__hours {
    border-collapse: collapse;
    margin: 0 auto;
}

/* css/styles.css:4043 leaks `border: 1px solid` onto every tr/td on the site
   (its selector list is missing the class prefix), so reset it explicitly. */
.dh-footer__hours tr,
.dh-footer__hours th,
.dh-footer__hours td {
    border: 0;
}

.dh-footer__hours th,
.dh-footer__hours td {
    padding: 0;
    font: var(--dh-weight-regular) 17px/1.7 var(--dh-font);
    white-space: nowrap;
    text-align: left;
}

.dh-footer__hours th {
    padding-right: 14px;
    font-weight: var(--dh-weight-bold);
}

.dh-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dh-footer__contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    font: var(--dh-weight-regular) 17px/1.5 var(--dh-font);
}

.dh-footer__legal {
    border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.dh-footer__legal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-block: 18px;
    text-align: center;
    font: var(--dh-weight-regular) 13px/1.5 var(--dh-font);
}

.dh-footer__legal-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dh-footer__legal a {
    color: var(--dh-ink-0);
    font: var(--dh-weight-regular) 13px/1.5 var(--dh-font);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.dh-footer__legal a:hover,
.dh-footer__legal a:focus {
    color: var(--dh-gold-500);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 768px) {
    .dh-footer__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
        gap: clamp(24px, 2.4vw, 38px);
        justify-items: start;
        text-align: left;
    }

    .dh-footer__col {
        align-items: flex-start;
    }

    .dh-footer__logo {
        height: 100px;
    }

    .dh-footer__hours {
        margin: 0;
    }

    .dh-footer__payment {
        align-items: flex-start;
    }

    .dh-footer__legal-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: clamp(16px, 4vw, 48px);
        padding-block: 20px;
        text-align: left;
        font-size: 15px;
    }

    .dh-footer__legal-links {
        flex-direction: row;
        gap: clamp(16px, 3vw, 48px);
        margin-inline: auto;
    }

    .dh-footer__legal a {
        font-size: 15px;
    }
}

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */

.dh-error {
    background: var(--dh-surface-page);
    padding-block: clamp(56px, 9vw, 120px);
    font-family: var(--dh-font);
}

.dh-error__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 620px;
    text-align: center;
}

.dh-error__art {
    width: min(60%, 190px);
    height: auto;
    margin-bottom: 8px;
}

.dh-error__code {
    font: var(--dh-weight-bold) 15px/1 var(--dh-font);
    letter-spacing: var(--dh-tracking-eyebrow);
    color: var(--dh-text-brand);
}

.dh-error__title {
    margin: 0;
    font: var(--dh-weight-black) clamp(28px, 5vw, 44px)/1.1 var(--dh-font);
    letter-spacing: var(--dh-tracking-display);
    color: var(--dh-text-primary);
}

.dh-error__text {
    margin: 0;
    font: var(--dh-weight-regular) 17px/1.6 var(--dh-font);
    color: var(--dh-text-secondary);
}

.dh-error__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    margin-top: 10px;
}

@media (min-width: 641px) {
    .dh-error__actions {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   Head-office feedback panel — kept from the legacy footer, restyled.
   -------------------------------------------------------------------------- */

.dh-feedback {
    background: var(--dh-surface-sunken);
    padding-block: clamp(44px, 5vw, 72px);
    font-family: var(--dh-font);
}

.dh-feedback__title {
    margin: 0 0 clamp(24px, 3vw, 36px);
    text-align: center;
    font: var(--dh-weight-black) clamp(21px, 2.6vw, 30px)/1.2 var(--dh-font);
    letter-spacing: var(--dh-tracking-display);
    color: var(--dh-text-primary);
}

.dh-feedback__form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.dh-feedback__field,
.dh-feedback__message {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    background: var(--dh-surface-card);
    border: 1px solid var(--dh-border-subtle);
    border-radius: var(--dh-radius-button);
    font: var(--dh-weight-regular) 16px/1.4 var(--dh-font);
    color: var(--dh-text-primary);
    transition: border-color var(--dh-duration-fast) var(--dh-ease),
        box-shadow var(--dh-duration-fast) var(--dh-ease);
}

.dh-feedback__message {
    min-height: 150px;
    resize: vertical;
}

.dh-feedback__field:focus,
.dh-feedback__message:focus {
    outline: none;
    border-color: var(--dh-red-500);
    box-shadow: 0 0 0 3px rgba(202, 0, 2, 0.28);
}

.dh-feedback__error {
    display: none;
    margin: 0;
    text-align: center;
    color: var(--dh-red-500);
    font: var(--dh-weight-semibold) 15px/1.4 var(--dh-font);
}

@media (min-width: 768px) {
    .dh-feedback__form {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .dh-feedback__message,
    .dh-feedback__actions {
        grid-column: 2;
    }

    .dh-feedback__message {
        grid-row: 1 / span 4;
        height: 100%;
    }
}

/* --------------------------------------------------------------------------
   Shared focus treatment for the new chrome.
   -------------------------------------------------------------------------- */

.dh-btn:focus-visible,
.dh-nav__link:focus-visible,
.dh-header__toggle:focus-visible,
.dh-header__basket:focus-visible,
.dh-footer__link:focus-visible,
.dh-footer__social-link:focus-visible,
.dh-footer__legal a:focus-visible {
    outline: 2px solid var(--dh-ink-0);
    outline-offset: 2px;
}

.dh-feedback .dh-btn:focus-visible,
.dh-footer__legal a:focus-visible {
    outline-color: var(--dh-ink-0);
}

.dh-feedback .dh-btn:focus-visible {
    outline-color: var(--dh-red-500);
}
