/* ==========================================================================
   Hanna Brothers — modern page system
   Shared design system for every redesigned template. Enqueued from
   functions.php; see the `hb-modern-css` block there for the current list.

     - page-tamplate/tpl-the-studio-cafe.php      (/the-studio-cafe/)
     - page-tamplate/tpl-the-studio-menu.php      (/the-studio-cafe-menu/)
     - single-menu.php                            (`menu` CPT entries)
     - page-tamplate/tpl-corporate-solutions.php  (/workplace-dining/)
     - page-tamplate/tpl-film-catering.php        (/film-catering/)
     - page-tamplate/tpl-about.php                (/about/)
     - page-tamplate/tpl-careers.php              (/careers/)
     - page-tamplate/tpl-contact.php              (/contact-us/)

   Everything is scoped under `.hb-modern` so nothing leaks into the older
   templates, whose amz_style.css rules would otherwise collide. Tokens mirror
   news.css (`.np-modern`) so both redesigns read as one theme.
   ========================================================================== */

.hb-modern {
    --hb-red: #A41D21;
    --hb-red-dark: #7d1518;
    --hb-ink: #14171a;
    --hb-muted: #5c6670;
    --hb-line: #e6e8ec;
    --hb-soft: #f5f6f8;
    --hb-radius: 18px;
    --hb-shadow: 0 24px 60px rgba(20, 23, 26, 0.12);
    --hb-shadow-sm: 0 16px 40px rgba(20, 23, 26, 0.10);
    color: var(--hb-ink);
    font-family: 'Azo Sans', sans-serif;
    overflow-x: hidden;
}

.hb-modern *,
.hb-modern *::before,
.hb-modern *::after {
    box-sizing: border-box;
}

.hb-modern .hb-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hb-modern .hb-container--narrow {
    max-width: 900px;
}

/* --- Shared bits --------------------------------------------------------- */
.hb-modern .hb-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hb-red);
    margin: 0 0 18px;
}

.hb-modern .hb-kicker--light {
    color: #fff;
}

.hb-modern .hb-kicker--pill {
    background: rgba(164, 29, 33, 0.08);
    padding: 8px 16px;
    border-radius: 999px;
}

.hb-modern .hb-kicker--light.hb-kicker--pill {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hb-modern .hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* uppercase labels ride high in the line box — 2px more top than bottom */
    padding: 16px 30px 14px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hb-modern .hb-btn--primary {
    background: var(--hb-red);
    border-color: var(--hb-red);
    color: #fff;
    box-shadow: 0 12px 26px rgba(164, 29, 33, 0.28);
}

.hb-modern .hb-btn--primary:hover {
    background: var(--hb-red-dark);
    border-color: var(--hb-red-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(164, 29, 33, 0.36);
}

.hb-modern .hb-btn--outline {
    background: transparent;
    border-color: var(--hb-red);
    color: var(--hb-red);
}

.hb-modern .hb-btn--outline:hover {
    background: var(--hb-red);
    color: #fff;
    transform: translateY(-3px);
}

.hb-modern .hb-btn--ghost {
    background: #fff;
    border-color: var(--hb-line);
    color: var(--hb-ink);
}

.hb-modern .hb-btn--ghost:hover {
    border-color: var(--hb-red);
    color: var(--hb-red);
    transform: translateY(-3px);
}

/* --- Hero ---------------------------------------------------------------- */
.hb-modern .hb-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: #1a1d21;
    color: #fff;
    text-align: center;
}

.hb-modern .hb-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 14, 0.55) 0%, rgba(10, 12, 14, 0.4) 45%, rgba(10, 12, 14, 0.85) 100%);
}

.hb-modern .hb-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 150px 24px 110px;
}

.hb-modern .hb-hero__title {
    /* matches the reduced news hero scale */
    font-size: clamp(30px, 4.9vw, 57px);
    font-weight: 900;
    line-height: 1.04;
    text-transform: uppercase;
    margin: 0 0 20px;
    color: #fff;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.hb-modern .hb-hero__subtitle {
    font-size: clamp(17px, 2.1vw, 22px);
    line-height: 1.55;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 auto;
    max-width: 700px;
}

/* --- Section scaffolding -------------------------------------------------- */
.hb-modern .hb-section {
    padding: 90px 0;
}

.hb-modern .hb-section--soft {
    background: var(--hb-soft);
    --hb-scrim: #f5f6f8;
}

/* --- Faded photo backdrops ------------------------------------------------ */
/* Breaks up the wall of white as you scroll. The image URL comes in from the
   template as an inline `--hb-bg` custom property, so it reuses photos the
   editor has already uploaded rather than hard-coding new assets. */
.hb-modern .hb-section--photo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    --hb-scrim: #fff;
}

.hb-modern .hb-section--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--hb-bg);
    background-size: cover;
    background-position: center;
    /* parallax drift as the section scrolls past */
    background-attachment: fixed;
    opacity: 0.16;
    filter: grayscale(0.35);
}

/* Feathers the photo into the page colour top and bottom so it reads as a
   wash rather than a hard-edged band. */
.hb-modern .hb-section--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        var(--hb-scrim) 0%,
        rgba(255, 255, 255, 0) 26%,
        rgba(255, 255, 255, 0) 74%,
        var(--hb-scrim) 100%
    );
}

.hb-modern .hb-section--photo.hb-section--soft::after {
    background: linear-gradient(
        180deg,
        var(--hb-scrim) 0%,
        rgba(245, 246, 248, 0) 26%,
        rgba(245, 246, 248, 0) 74%,
        var(--hb-scrim) 100%
    );
}

/* background-attachment:fixed is janky-to-broken on iOS/Android, and the
   viewport-sized painting is expensive on low-end phones. */
@media (max-width: 991px), (prefers-reduced-motion: reduce) {
    .hb-modern .hb-section--photo::before {
        background-attachment: scroll;
    }
}

.hb-modern .hb-section--tight {
    padding: 64px 0;
}

.hb-modern .hb-section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 54px;
}

.hb-modern .hb-section__title {
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 900;
    line-height: 1.12;
    text-transform: uppercase;
    margin: 0;
    color: var(--hb-ink);
}

.hb-modern .hb-section__lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--hb-muted);
    margin: 18px 0 0;
}

/* --- Intro block (Studio Cafe landing) ------------------------------------ */
.hb-modern .hb-intro {
    padding: 84px 0 20px;
    text-align: center;
}

.hb-modern .hb-intro__text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--hb-muted);
    margin: 0 auto;
    max-width: 820px;
}

.hb-modern .hb-intro__text p {
    margin: 0 0 18px;
}

.hb-modern .hb-intro__text p:last-child {
    margin-bottom: 0;
}

.hb-modern .hb-intro__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}

/* --- Alternating feature rows (studio_cafe_list repeater) ----------------- */
.hb-modern .hb-features {
    padding: 60px 0 90px;
}

.hb-modern .hb-feature {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 76px);
    margin-bottom: clamp(48px, 6vw, 88px);
}

.hb-modern .hb-feature:last-child {
    margin-bottom: 0;
}

/* even rows flip: text left, image right */
.hb-modern .hb-feature--flip .hb-feature__media {
    order: 2;
}

.hb-modern .hb-feature__media {
    position: relative;
    border-radius: var(--hb-radius);
    overflow: hidden;
    box-shadow: var(--hb-shadow);
    aspect-ratio: 4 / 3;
    background: var(--hb-soft);
}

.hb-modern .hb-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hb-modern .hb-feature:hover .hb-feature__media img {
    transform: scale(1.04);
}

.hb-modern .hb-feature__title {
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0 0 18px;
    color: var(--hb-ink);
}

.hb-modern .hb-feature__text {
    font-size: 17px;
    line-height: 1.75;
    color: var(--hb-muted);
    margin: 0 0 26px;
}

.hb-modern .hb-feature__text p:last-child {
    margin-bottom: 0;
}

/* Editors put standalone CTAs (e.g. "PLAN AN EVENT") in the WYSIWYG body as a
   paragraph containing nothing but a link, rather than in the ACF link field.
   The template tags those paragraphs with .hb-feature__cta (matched in PHP, so
   a link inside a sentence is never caught) and they render as real buttons. */
.hb-modern .hb-feature__text p.hb-feature__cta {
    margin-bottom: 0;
}

.hb-modern .hb-feature__text p.hb-feature__cta > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin-top: 6px;
    padding: 0 30px;
    border: 2px solid var(--hb-red);
    border-radius: 999px;
    background: transparent;
    color: var(--hb-red);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hb-modern .hb-feature__text p.hb-feature__cta > a:hover {
    background: var(--hb-red);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Card grid (events, news, menu directory) ----------------------------- */
.hb-modern .hb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hb-modern .hb-grid--two {
    grid-template-columns: repeat(2, 1fr);
}

.hb-modern .hb-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hb-modern .hb-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hb-shadow-sm);
    border-color: transparent;
}

.hb-modern .hb-card__media {
    display: block;
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--hb-soft);
}

.hb-modern .hb-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hb-modern .hb-card:hover .hb-card__media img {
    transform: scale(1.06);
}

/* placeholder when a menu/event has no featured image */
.hb-modern .hb-card__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2e33 0%, #14171a 100%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hb-modern .hb-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 24px 24px 26px;
}

.hb-modern .hb-card__date {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--hb-red);
    margin: 0 0 10px;
}

.hb-modern .hb-card__title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.32;
    margin: 0;
    text-transform: uppercase;
}

.hb-modern .hb-card__title a {
    color: var(--hb-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hb-modern .hb-card__title a:hover {
    color: var(--hb-red);
}

.hb-modern .hb-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hb-red);
    text-decoration: none;
}

.hb-modern .hb-card__link svg {
    transition: transform 0.2s ease;
}

.hb-modern .hb-card:hover .hb-card__link svg {
    transform: translateX(4px);
}

.hb-modern .hb-empty {
    text-align: center;
    font-size: 17px;
    color: var(--hb-muted);
    margin: 0;
    padding: 40px 0;
}

/* --- Menu directory cards ------------------------------------------------- */
/* The directory is a wayfinding page, so the whole card is one link target. */
.hb-modern .hb-menu-card {
    position: relative;
    display: block;
    border-radius: var(--hb-radius);
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 3 / 4;
    background: #14171a;
    box-shadow: var(--hb-shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hb-modern .hb-menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hb-shadow);
}

.hb-modern .hb-menu-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hb-modern .hb-menu-card:hover img {
    transform: scale(1.06);
}

.hb-modern .hb-menu-card__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 14, 0.1) 0%, rgba(10, 12, 14, 0.35) 45%, rgba(10, 12, 14, 0.9) 100%);
}

.hb-modern .hb-menu-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 24px 26px;
    text-align: center;
}

.hb-modern .hb-menu-card__title {
    display: block;                     /* it's a <span> inside the card's <a> */
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hb-modern .hb-menu-card__cue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.hb-modern .hb-menu-card:hover .hb-menu-card__cue {
    color: #fff;
}

/* --- Single menu: back bar ------------------------------------------------ */
.hb-modern .hb-backbar {
    border-bottom: 1px solid var(--hb-line);
    background: #fff;
}

.hb-modern .hb-backbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.hb-modern .hb-backbar__label {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hb-muted);
    margin: 0;
}

/* --- Single menu: day tabs ------------------------------------------------ */
/* Bootstrap 5 tab JS is untouched — this only restyles .nav-tabs/.nav-link. */
.hb-modern .hb-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 0 40px;
    padding: 6px;
    border: 1px solid var(--hb-line);
    border-radius: 999px;
    background: var(--hb-soft);
    /* many days won't fit a phone — scroll rather than wrap into a ragged block */
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.hb-modern .hb-tabs::-webkit-scrollbar {
    display: none;
}

.hb-modern .hb-tabs .nav-item {
    flex: 1 0 auto;
    list-style: none;
}

.hb-modern .hb-tabs .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    white-space: nowrap;
    padding: 13px 22px 11px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--hb-muted);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.hb-modern .hb-tabs .nav-link span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: none;
    opacity: 0.75;
}

.hb-modern .hb-tabs .nav-link:hover {
    color: var(--hb-ink);
    background: rgba(20, 23, 26, 0.04);
}

.hb-modern .hb-tabs .nav-link.active {
    background: var(--hb-red);
    color: #fff;
    box-shadow: 0 10px 22px rgba(164, 29, 33, 0.26);
}

.hb-modern .hb-tabs .nav-link.active span {
    opacity: 0.9;
}

/* --- Single menu: the menu content itself --------------------------------- */
.hb-modern .hb-menu-panel {
    background: #fff;
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    padding: clamp(26px, 4vw, 52px);
    box-shadow: var(--hb-shadow-sm);
}

/* WYSIWYG output from the `content` sub-field — style generously but
   defensively, since editors paste all sorts of markup in here. */
.hb-modern .hb-menu-body {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--hb-muted);
}

.hb-modern .hb-menu-body > *:first-child {
    margin-top: 0;
}

.hb-modern .hb-menu-body > *:last-child {
    margin-bottom: 0;
}

.hb-modern .hb-menu-body h1,
.hb-modern .hb-menu-body h2,
.hb-modern .hb-menu-body h3,
.hb-modern .hb-menu-body h4 {
    color: var(--hb-ink);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 42px 0 6px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hb-line);
    position: relative;
}

/* red rule under each course heading */
.hb-modern .hb-menu-body h1::after,
.hb-modern .hb-menu-body h2::after,
.hb-modern .hb-menu-body h3::after,
.hb-modern .hb-menu-body h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 62px;
    height: 2px;
    background: var(--hb-red);
}

.hb-modern .hb-menu-body h2 { font-size: clamp(20px, 2.4vw, 27px); }
.hb-modern .hb-menu-body h3 { font-size: clamp(18px, 2vw, 22px); }
.hb-modern .hb-menu-body h4 { font-size: 17px; }

.hb-modern .hb-menu-body p {
    margin: 0 0 18px;
}

.hb-modern .hb-menu-body strong {
    color: var(--hb-ink);
    font-weight: 800;
}

.hb-modern .hb-menu-body ul,
.hb-modern .hb-menu-body ol {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

/* each dish reads as a line item with a red marker */
.hb-modern .hb-menu-body ul > li {
    position: relative;
    padding: 11px 0 11px 26px;
    border-bottom: 1px dashed var(--hb-line);
}

.hb-modern .hb-menu-body ul > li:last-child {
    border-bottom: none;
}

.hb-modern .hb-menu-body ul > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 20px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hb-red);
}

.hb-modern .hb-menu-body ol {
    counter-reset: hb-item;
}

.hb-modern .hb-menu-body ol > li {
    position: relative;
    counter-increment: hb-item;
    padding: 11px 0 11px 32px;
    border-bottom: 1px dashed var(--hb-line);
}

.hb-modern .hb-menu-body ol > li::before {
    content: counter(hb-item);
    position: absolute;
    left: 0;
    top: 11px;
    font-weight: 800;
    color: var(--hb-red);
}

.hb-modern .hb-menu-body ul ul,
.hb-modern .hb-menu-body ul ol {
    margin: 10px 0 0;
}

.hb-modern .hb-menu-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 8px 0;
}

.hb-modern .hb-menu-body a {
    color: var(--hb-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* editors sometimes lay menus out as tables — keep them from breaking the page */
.hb-modern .hb-menu-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 22px;
}

.hb-modern .hb-menu-body table td,
.hb-modern .hb-menu-body table th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--hb-line);
    text-align: left;
    vertical-align: top;
}

.hb-modern .hb-menu-body table th {
    color: var(--hb-ink);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.hb-modern .hb-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 991px) {
    .hb-modern .hb-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hb-modern .hb-feature {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* the flip only makes sense in two columns; stack image-first every time */
    .hb-modern .hb-feature--flip .hb-feature__media {
        order: 0;
    }

    .hb-modern .hb-section {
        padding: 68px 0;
    }
}

@media (max-width: 767px) {
    .hb-modern .hb-hero {
        min-height: 380px;
    }

    .hb-modern .hb-hero__inner {
        padding: 120px 22px 80px;
    }

    .hb-modern .hb-section,
    .hb-modern .hb-features {
        padding: 56px 0;
    }

    .hb-modern .hb-intro {
        padding: 60px 0 12px;
    }

    .hb-modern .hb-section__head {
        margin-bottom: 36px;
    }

    .hb-modern .hb-grid,
    .hb-modern .hb-grid--two {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hb-modern .hb-intro__actions .hb-btn {
        width: 100%;
    }

    .hb-modern .hb-backbar__inner {
        justify-content: center;
        text-align: center;
    }

    .hb-modern .hb-menu-card {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb-modern .hb-card,
    .hb-modern .hb-card__media img,
    .hb-modern .hb-menu-card,
    .hb-modern .hb-menu-card img,
    .hb-modern .hb-feature__media img,
    .hb-modern .hb-btn,
    .hb-modern .hb-tabs .nav-link {
        transition: none;
    }

    .hb-modern .hb-card:hover,
    .hb-modern .hb-menu-card:hover,
    .hb-modern .hb-btn:hover {
        transform: none;
    }
}

/* ==========================================================================
   Shared components used by the wider page redesign
   (workplace dining / film catering), same `.hb-modern` scope and tokens.
   ========================================================================== */

/* --- Full-bleed image band ------------------------------------------------ */
.hb-modern .hb-band {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 7;
    min-height: 240px;
    overflow: hidden;
    background: #14171a;
}

.hb-modern .hb-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Testimonials --------------------------------------------------------- */
/* .testimonial-slider is kept on the markup so customScript.js's owlCarousel
   init still binds; this only restyles what it renders. */
.hb-modern .hb-quotes {
    max-width: 900px;
    margin: 0 auto;
}

.hb-modern .hb-quote {
    text-align: center;
    padding: 0 12px;
}

.hb-modern .hb-quote__mark {
    display: block;
    font-size: 64px;
    line-height: 0.8;
    font-weight: 900;
    color: var(--hb-red);
    opacity: 0.22;
    margin-bottom: 14px;
}

.hb-modern .hb-quote__text {
    font-size: clamp(17px, 2.1vw, 23px);
    line-height: 1.65;
    font-weight: 500;
    color: var(--hb-ink);
    margin: 0 0 22px;
}

.hb-modern .hb-quote__name {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hb-muted);
}

.hb-modern .hb-quote__name::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--hb-red);
    margin: 0 auto 14px;
}

/* owl's dots sit under the quote */
.hb-modern .owl-theme .owl-dots {
    margin-top: 26px;
}

.hb-modern .owl-theme .owl-dots .owl-dot span {
    width: 9px;
    height: 9px;
    margin: 0 5px;
    background: #d4d8dd;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hb-modern .owl-theme .owl-dots .owl-dot.active span,
.hb-modern .owl-theme .owl-dots .owl-dot:hover span {
    background: var(--hb-red);
    transform: scale(1.15);
}

/* --- Gallery -------------------------------------------------------------- */
.hb-modern .hb-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.hb-modern .hb-gallery__item {
    display: block;
    border-radius: var(--hb-radius);
    overflow: hidden;
    background: var(--hb-soft);
    text-decoration: none;
}

.hb-modern .hb-gallery__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.hb-modern .hb-gallery__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hb-modern .hb-gallery__item:hover .hb-gallery__media img {
    transform: scale(1.05);
}

.hb-modern .hb-gallery__title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hb-ink);
    margin: 0;
    padding: 18px 4px 0;
}

/* --- Closing CTA ---------------------------------------------------------- */
.hb-modern .hb-cta {
    text-align: center;
    padding-top: 12px;
}

@media (max-width: 767px) {
    .hb-modern .hb-gallery {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hb-modern .hb-band {
        aspect-ratio: 16 / 9;
        min-height: 180px;
    }

    .hb-modern .hb-quote__mark {
        font-size: 48px;
    }
}

/* ==========================================================================
   About / Careers / Contact components
   ========================================================================== */

/* --- People (founders, leadership) ---------------------------------------- */
.hb-modern .hb-people {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.hb-modern .hb-people--three {
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.hb-modern .hb-person {
    text-align: center;
}

.hb-modern .hb-person__media {
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--hb-radius);
    overflow: hidden;
    background: var(--hb-soft);
    margin-bottom: 22px;
    box-shadow: var(--hb-shadow-sm);
}

.hb-modern .hb-person__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hb-modern .hb-person:hover .hb-person__media img {
    transform: scale(1.04);
}

.hb-modern .hb-person__name {
    font-size: 21px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hb-ink);
    margin: 0 0 6px;
}

.hb-modern .hb-person__role {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--hb-red);
    margin-bottom: 14px;
}

.hb-modern .hb-person__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--hb-ink);
    text-decoration: none;
    border-bottom: 2px solid var(--hb-red);
    padding-bottom: 3px;
    transition: color 0.2s ease;
}

.hb-modern .hb-person__link:hover {
    color: var(--hb-red);
}

/* --- Core values ---------------------------------------------------------- */
.hb-modern .hb-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.hb-modern .hb-value__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--hb-radius);
    overflow: hidden;
    background: #14171a;
    margin-bottom: 20px;
}

.hb-modern .hb-value__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hb-modern .hb-value__label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 24px 22px;
    background: linear-gradient(180deg, rgba(10, 12, 14, 0) 0%, rgba(10, 12, 14, 0.82) 100%);
}

.hb-modern .hb-value__title {
    font-size: clamp(19px, 2.2vw, 25px);
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.hb-modern .hb-value__text {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--hb-muted);
}

.hb-modern .hb-value__text p:last-child {
    margin-bottom: 0;
}

/* --- Mission statement ---------------------------------------------------- */
.hb-modern .hb-mission {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hb-modern .hb-mission__title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.15;
    color: var(--hb-ink);
    margin: 0 0 20px;
}

.hb-modern .hb-mission__title::after {
    content: "";
    display: block;
    width: 62px;
    height: 3px;
    background: var(--hb-red);
    margin: 20px auto 0;
}

.hb-modern .hb-mission__text {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.75;
    color: var(--hb-muted);
}

.hb-modern .hb-mission__text p:last-child {
    margin-bottom: 0;
}

/* --- Logo / small gallery grid -------------------------------------------- */
.hb-modern .hb-gallery--logos {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hb-modern .hb-gallery--logos .hb-gallery__media {
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--hb-line);
    border-radius: 14px;
}

.hb-modern .hb-gallery--logos .hb-gallery__media img {
    object-fit: contain;
    padding: 18px;
}

/* --- Contact: split layout ------------------------------------------------ */
.hb-modern .hb-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.hb-modern .hb-split__media {
    border-radius: var(--hb-radius);
    overflow: hidden;
    box-shadow: var(--hb-shadow);
    position: sticky;
    top: 110px;
}

.hb-modern .hb-split__media img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Contact Form 7 ------------------------------------------------------- */
/* Scoped restyle only — the shortcode, field names and CF7's own JS hooks are
   untouched, so submission and validation behave exactly as before. */
.hb-modern .hb-form {
    background: #fff;
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    padding: clamp(24px, 3.5vw, 40px);
    box-shadow: var(--hb-shadow-sm);
}

.hb-modern .hb-form .wpcf7-form p {
    margin: 0 0 18px;
}

.hb-modern .hb-form label {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--hb-ink);
    margin-bottom: 0;
}

.hb-modern .hb-form input[type="text"],
.hb-modern .hb-form input[type="email"],
.hb-modern .hb-form input[type="tel"],
.hb-modern .hb-form input[type="url"],
.hb-modern .hb-form input[type="number"],
.hb-modern .hb-form input[type="date"],
.hb-modern .hb-form select,
.hb-modern .hb-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid var(--hb-line);
    border-radius: 12px;
    background: #fcfcfd;
    color: var(--hb-ink);
    font-family: inherit;
    font-size: 16px;              /* >=16px stops iOS zooming on focus */
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hb-modern .hb-form textarea {
    min-height: 150px;
    resize: vertical;
}

.hb-modern .hb-form input:focus,
.hb-modern .hb-form select:focus,
.hb-modern .hb-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--hb-red);
    box-shadow: 0 0 0 3px rgba(164, 29, 33, 0.12);
}

.hb-modern .hb-form input::placeholder,
.hb-modern .hb-form textarea::placeholder {
    color: #9aa1a8;
}

.hb-modern .hb-form input[type="submit"],
.hb-modern .hb-form .wpcf7-submit {
    width: auto;
    margin-top: 6px;
    padding: 0 34px;
    height: 54px;
    border: 2px solid var(--hb-red);
    border-radius: 999px;
    background: var(--hb-red);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hb-modern .hb-form input[type="submit"]:hover,
.hb-modern .hb-form .wpcf7-submit:hover {
    background: var(--hb-red-dark);
    border-color: var(--hb-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(164, 29, 33, 0.28);
}

/* CF7 state messages */
.hb-modern .hb-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--hb-red);
}

.hb-modern .hb-form .wpcf7-not-valid {
    border-color: var(--hb-red);
}

.hb-modern .hb-form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 14px 18px;
    border-width: 1px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.hb-modern .hb-form .wpcf7 form.invalid .wpcf7-response-output,
.hb-modern .hb-form .wpcf7-response-output {
    border-color: var(--hb-line);
}

.hb-modern .hb-form .wpcf7-spinner {
    vertical-align: middle;
}

@media (max-width: 991px) {
    .hb-modern .hb-people--three {
        grid-template-columns: repeat(2, 1fr);
    }

    .hb-modern .hb-gallery--logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .hb-modern .hb-split {
        grid-template-columns: 1fr;
    }

    .hb-modern .hb-split__media {
        position: static;
    }
}

@media (max-width: 767px) {
    .hb-modern .hb-people,
    .hb-modern .hb-people--three,
    .hb-modern .hb-values {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hb-modern .hb-gallery--logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Dark photo section --------------------------------------------------- */
/* For sections that carried a real background photo in the old templates (e.g.
   the careers testimonials), rather than the subtle --photo wash. */
.hb-modern .hb-section--dark {
    position: relative;
    isolation: isolate;
    background-size: cover;
    background-position: center;
    background-color: #14171a;
    color: #fff;
}

.hb-modern .hb-section--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 12, 14, 0.76) 0%, rgba(10, 12, 14, 0.86) 100%);
}

.hb-modern .hb-section--dark .hb-section__title,
.hb-modern .hb-section--dark .hb-quote__text {
    color: #fff;
}

.hb-modern .hb-section--dark .hb-kicker {
    color: #fff;
    opacity: 0.85;
}

.hb-modern .hb-section--dark .hb-quote__mark {
    color: #fff;
    opacity: 0.32;
}

.hb-modern .hb-section--dark .hb-quote__name {
    color: rgba(255, 255, 255, 0.82);
}

.hb-modern .hb-section--dark .owl-theme .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.42);
}

.hb-modern .hb-section--dark .owl-theme .owl-dots .owl-dot.active span,
.hb-modern .hb-section--dark .owl-theme .owl-dots .owl-dot:hover span {
    background: #fff;
}

/* --- Link tiles (training / external resources) --------------------------- */
.hb-modern .hb-linklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-modern .hb-linklist li {
    margin: 0;
}

.hb-modern .hb-linktile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 100%;
    min-height: 84px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--hb-line);
    border-radius: 14px;
    color: var(--hb-ink);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.35;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.hb-modern .hb-linktile:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--hb-shadow-sm);
    color: var(--hb-red);
}

.hb-modern .hb-linktile__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(164, 29, 33, 0.08);
    color: var(--hb-red);
    transition: background 0.22s ease, transform 0.22s ease;
}

.hb-modern .hb-linktile:hover .hb-linktile__icon {
    background: var(--hb-red);
    color: #fff;
    transform: translate(3px, -3px);
}

/* --- CTA band ------------------------------------------------------------- */
.hb-modern .hb-ctaband {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hb-modern .hb-ctaband__title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--hb-ink);
    margin: 0 0 28px;
}

/* --- Media-only feature row ----------------------------------------------- */
/* A repeater row with a photo but no copy yet: show the photo full width
   instead of a half-empty two-column row. Adding a title or text later turns
   it back into a normal feature automatically. */
.hb-modern .hb-feature--media-only {
    grid-template-columns: 1fr;
}

.hb-modern .hb-feature--media-only .hb-feature__media {
    aspect-ratio: 21 / 9;
}

@media (max-width: 767px) {
    .hb-modern .hb-linklist {
        grid-template-columns: 1fr;
    }

    .hb-modern .hb-feature--media-only .hb-feature__media {
        aspect-ratio: 16 / 9;
    }
}
