/*
 * blocks.css — ITM block partial styles extracted from Views/Blocks/*.cshtml (CMS-19).
 * Sections are ordered alphabetically by partial filename.
 * Mobile @media breakpoints are layered in per-section during CMS-20.
 *
 * Naming: BEM-ish .block-{alias}__element--modifier.
 * CSS variables: defined in /assets/css/tokens.css (--itm-yellow, --itm-black, etc.).
 * Standard mobile breakpoint going forward: 768px (brief §CSS conventions).
 */

/* Figma mobile spec uses 32px side-padding across all sections (hero, breadcrumbs,
   imageTextBlock, etc.). Override the gutter token at mobile widths so all inner
   wrappers using var(--itm-layout-gutter) align at the same 32px left edge.
   Lives here (not tokens.css) so asp-append-version cache-busting picks it up. */
@media (max-width: 768px) {
  :root { --itm-layout-gutter: 32px; }
}

/* Override legacy Kentico CSS which sets html,body{height:100%} — that stretches
   the body to fill the viewport even when content is shorter, leaving a blank gap
   below the footer. Height auto lets the body shrink to fit its content. */
html, body { height: auto !important; }

/* Kentico legacy main.css sets z-index:2 on <main> which creates a stacking
   context that interferes with absolutely-positioned block elements at wide viewports.
   Reset it to auto so blocks stack correctly. The 15px side padding is left intact
   as it provides a small edge buffer for full-bleed CTA content boxes. */
main { z-index: auto !important; }

/* Prevent horizontal overflow at all viewport widths / zoom levels. */
body { overflow-x: clip; }

/* ============================================================
   Global Button System — itm-btn / itm-btn--outline
   Single source of truth for ALL primary and outline CTAs site-wide.
   To change the hover effect, update here — it propagates everywhere.
   Primary: yellow fill / black text. Outline: yellow border / white text.
   ============================================================ */
.itm-btn {
    display: inline-flex; align-items: center; gap: 10px;
    height: 48px; padding: 0 20px; box-sizing: border-box;
    background: var(--itm-yellow); color: var(--itm-black);
    border: 3px solid var(--itm-yellow); border-radius: 8px;
    font-family: var(--itm-font-body); font-weight: 700; font-size: 16px;
    text-transform: uppercase; letter-spacing: -0.08px; line-height: 14px;
    font-feature-settings: 'liga' off, 'clig' off;
    text-decoration: none; white-space: nowrap; cursor: pointer;
}
.itm-btn svg {
    flex: 0 0 auto; overflow: visible;
    transform-box: fill-box; transform-origin: center;
    transform: rotate(-90deg); transition: transform 0.2s ease;
}
.itm-btn:hover svg,
.block-promo-cards__card:hover .itm-btn svg { transform: rotate(0deg); }
.itm-btn--outline { background: transparent; color: var(--itm-white); border-color: var(--itm-yellow); }
.itm-btn--outline svg { color: var(--itm-yellow); }
.itm-btn--outline:hover svg { transform: rotate(-75deg); }
.sd-btn-goto--active { background: var(--itm-yellow) !important; color: var(--itm-black) !important; cursor: default; }
@media (max-width: 768px) { .itm-btn { min-height: 44px; } }

/* ============================================================
   accordionBlock
   ============================================================ */
.block-accordion { padding: 3rem 2rem; }
.block-accordion--light { background: var(--itm-white); color: var(--itm-black); }
.block-accordion--dark { background: var(--itm-black); color: var(--itm-white); }
.block-accordion__inner { max-width: 900px; margin: 0 auto; }
.block-accordion__title { font-size: 2rem; margin: 0 0 2rem; font-weight: 700; }
.block-accordion__list { list-style: none; padding: 0; margin: 0; }
.block-accordion__item { border-top: 1px solid currentColor; }
.block-accordion__item:last-child { border-bottom: 1px solid currentColor; }
.block-accordion__item summary { cursor: pointer; font-weight: 600; padding: 1rem 0; font-size: 1.1rem; }
.block-accordion__body { padding-bottom: 1rem; }
@media (max-width: 768px) {
    .block-accordion { padding: 1.5rem 1rem; }
    .block-accordion__title { font-size: 1.5rem; margin-bottom: 1.5rem; }
    .block-accordion__item summary { min-height: 44px; display: flex; align-items: center; }
}

/* ============================================================
   articleListingBlock
   ============================================================ */
.block-article-listing { padding: 3rem 2rem; background: var(--itm-bone-white); }
.block-article-listing__inner { max-width: 1100px; margin: 0 auto; }
.block-article-listing__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.block-article-listing__card { background: var(--itm-white); border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; }
.block-article-listing__card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.block-article-listing__card__body { padding: 1.25rem; }
.block-article-listing__card__body a { color: var(--itm-black); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.block-article-listing__card__body a:hover { color: var(--itm-yellow); }
.block-article-listing__meta { font-size: 0.85rem; color: #666; margin-top: 0.5rem; }
.block-article-listing__badge { display: inline-block; background: var(--itm-yellow); color: var(--itm-black); padding: 0.1rem 0.5rem; border-radius: 3px; font-size: 0.7rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.block-article-listing__empty { text-align: center; color: #666; padding: 2rem; }
@media (max-width: 768px) {
    .block-article-listing { padding: 2rem 1rem; }
    .block-article-listing__grid { grid-template-columns: 1fr; }
    .block-article-listing__card img { height: 160px; }
}

/* ============================================================
   carouselContainerBlock
   ============================================================ */
.block-carousel-container { padding: 4rem 0; }
.block-carousel-container__inner { max-width: var(--itm-content-max); margin: 0 auto; padding: 0 var(--itm-layout-gutter); }
.block-carousel-container__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.block-carousel-container__header h2 { font-size: 2rem; color: var(--itm-black); margin: 0 0 0.5rem; font-weight: 800; }
.block-carousel-container__header p { font-size: 1.1rem; color: #555; margin: 0; max-width: 60ch; }
.block-carousel-container__cta { color: var(--itm-yellow); font-weight: 700; text-decoration: none; }
.block-carousel-container__track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 1rem; }
.block-carousel-container__slot { flex: 0 0 calc((100% - 3rem) / 3); scroll-snap-align: start; }
.block-carousel-container--small .block-carousel-container__slot { flex-basis: calc((100% - 4.5rem) / 4); }
.block-carousel-container__controls { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.5rem; }
.block-carousel-container__nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ccc; background: var(--itm-white); cursor: pointer; font-size: 1.1rem; color: var(--itm-black); }
.block-carousel-container__nav:hover { background: var(--itm-black); color: var(--itm-white); border-color: var(--itm-black); }
@media (max-width: 768px) {
    .block-carousel-container { padding: 2rem 0; }
    .block-carousel-container__inner { padding: 0 32px; }
    .block-carousel-container__header h2 { font-size: 1.5rem; }
    .block-carousel-container__nav { width: 44px; height: 44px; }
    .block-carousel-container__slot { flex-basis: 80%; }
    .block-carousel-container--small .block-carousel-container__slot { flex-basis: 80%; }
}

/* ============================================================
   contactFormBlock — Figma node 1934:8641
   ============================================================ */
.block-contact-form { padding: 6.25rem 0; background: var(--itm-dark-grey) !important; color: var(--itm-white); }
.block-contact-form__inner { width: 536px !important; max-width: calc(100% - 2 * var(--itm-layout-gutter)) !important; margin: 0 auto !important; padding: 0 !important; box-sizing: border-box; }
.block-contact-form__form-wrap { width: 100% !important; box-sizing: border-box; }
.block-contact-form__form-wrap form,
.block-contact-form .umbraco-forms-form,
.block-contact-form .umbraco-forms-page,
.block-contact-form .umbraco-forms-fieldset,
.block-contact-form .row-fluid,
.block-contact-form [class*="col-"] { width: 100% !important; max-width: 100% !important; min-width: 0 !important; float: none !important; padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box !important; }
/* Heading: Eurostile Condensed Bold 40px, -0.4px tracking — Figma H2 token */
.block-contact-form__heading { font-family: "Eurostile Condensed", "Eurostile-CondensedBold", "Arial Narrow", Arial, sans-serif; font-size: 40px; font-weight: 700; line-height: 1.0; letter-spacing: -0.4px; text-transform: uppercase; margin: 0 0 2rem; }
/* Description: Inter Regular 20px — Figma P1 token. line-height: normal matches Figma leading-[normal] */
.block-contact-form__desc { font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif !important; font-size: 20px !important; font-style: normal !important; font-weight: 400 !important; line-height: normal !important; color: #FFF !important; margin: 0 0 4rem; max-width: 535px; }
.block-contact-form__desc a { color: #FFF; text-decoration: underline; }
.block-contact-form__missing { padding: 1.5rem 2rem; background: var(--itm-white); color: var(--itm-dark-grey); border-radius: 8px; border: 2px dashed var(--itm-yellow); }
.block-contact-form__missing code { background: var(--itm-bone-white); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.95em; }
/* Each field row: gap-[32px] between fields, capped at 510px to match CAPTCHA section */
.block-contact-form .umbraco-forms-field { margin-bottom: 2rem; max-width: 510px; }
.block-contact-form .umbraco-forms-navigation { margin-top: 0; }
/* Label: Inter Regular 16px white — gap-[12px] to input below */
.block-contact-form .umbraco-forms-form label { color: var(--itm-white); font-family: var(--itm-font-body); font-size: 16px; font-weight: 400; line-height: normal; display: block; margin: 0 0 12px; }
/* Inputs + select + textarea: white bg, 1px #999 border, 8px radius, 12px horizontal padding */
.block-contact-form .umbraco-forms-form input[type="text"],
.block-contact-form .umbraco-forms-form input[type="email"],
.block-contact-form .umbraco-forms-form input[type="tel"],
.block-contact-form .umbraco-forms-form select,
.block-contact-form .umbraco-forms-form textarea { width: 100% !important; max-width: 510px !important; padding: 0 12px; border: 1px solid #999; border-radius: 8px; font-size: 1rem; font-family: var(--itm-font-body); background: var(--itm-white); color: var(--itm-black); box-sizing: border-box !important; outline: none; }
/* Fixed-height fields: 40px per Figma */
.block-contact-form .umbraco-forms-form input[type="text"],
.block-contact-form .umbraco-forms-form input[type="email"],
.block-contact-form .umbraco-forms-form input[type="tel"],
.block-contact-form .umbraco-forms-form select { height: 40px; }
/* Textarea: 140px per Figma, padding on all sides */
.block-contact-form .umbraco-forms-form textarea { min-height: 140px; padding: 12px; resize: vertical; }
/* Focus ring */
.block-contact-form .umbraco-forms-form input:focus,
.block-contact-form .umbraco-forms-form select:focus,
.block-contact-form .umbraco-forms-form textarea:focus { border-color: var(--itm-black); box-shadow: 0 0 0 2px rgba(0,0,0,0.15); }
/* reCAPTCHA field — label, help text, widget spacing to match Figma P2 */
.block-contact-form .umbraco-forms-field.recaptcha2 label,
.block-contact-form .umbraco-forms-field.recaptcha2 .umbraco-forms-label { font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif !important; font-size: 16px !important; font-style: normal !important; font-weight: 400 !important; line-height: normal !important; color: #FFF !important; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; display: block; margin: 0 0 16px; }
.block-contact-form .umbraco-forms-field.recaptcha2 .umbraco-forms-tooltip,
.block-contact-form .umbraco-forms-field.recaptcha2 .umbraco-forms-helptext { font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif !important; font-size: 16px !important; font-style: normal !important; font-weight: 400 !important; line-height: normal !important; color: #FFF !important; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; display: block; margin: 0 0 32px; max-width: 590px; overflow-wrap: break-word; word-break: break-word; }
.block-contact-form .umbraco-forms-field.recaptcha2 .g-recaptcha { margin-bottom: 32px; }
/* Submit button gets itm-btn class via JS — only spacing override here */
.block-contact-form__char-count { font-family: var(--itm-font-body); font-size: 14px; font-weight: 400; color: var(--itm-white); text-align: right; margin: 6px 0 0; }
.block-contact-form__submit--submitting { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.block-contact-form__submit { margin-top: 0; }
/* Validation */
.block-contact-form .field-validation-error,
.block-contact-form .validation-summary-errors { color: #ffc599; font-size: 14px; font-weight: 400; margin-top: 0.3rem; display: block; }
/* Success state — shown after Umbraco Forms posts successfully */
.block-contact-form__success { display: none; }
.block-contact-form__success:not([hidden]) { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; width: 536px; max-width: 100%; }
.block-contact-form__success-heading { font-family: "Eurostile Condensed", "Eurostile-CondensedBold", "Arial Narrow", Arial, sans-serif; font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.4px; text-transform: uppercase; color: var(--itm-white); margin: 0; }
.block-contact-form__success-body { font-family: "Inter", sans-serif; font-size: 20px; font-style: normal; font-weight: 400; line-height: normal; color: #FFF; margin: 0; }
.block-contact-form__success-body a { color: var(--itm-white); text-decoration: underline; }
@media (max-width: 768px) {
    .block-contact-form { padding: 3.5rem 0; }
    .block-contact-form__heading { font-size: 2rem; }
    .block-contact-form__desc { font-size: 17px; margin-bottom: 2.5rem; max-width: 100%; }
    .block-contact-form__submit { display: flex; width: 100%; justify-content: center; }
    .block-contact-form__success-heading { font-size: 2rem; }
    .block-contact-form__success-body { font-size: 17px; }
    .block-contact-form__char-count { font-size: 13px; }
}

/* ============================================================
   ctaFullOrHalfBlock
   ============================================================ */
/* Outer band: dark-grey full-bleed. Inner: capped at --itm-content-max, centred. */
.block-cta { font-family: var(--itm-font-display); padding: 4rem 0; background: var(--itm-dark-grey); }
.block-cta--half { background: var(--itm-bone-white); }
.block-cta__inner { max-width: var(--itm-content-max); margin: 0 auto; padding: 0 var(--itm-layout-gutter); }
.block-cta--half .block-cta__inner { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
/* Full-width item: strip inner constraints so image bleeds edge-to-edge */
.block-cta--full { padding: 0; }
.block-cta--full .block-cta__inner { max-width: none; padding: 0; }
.block-cta--full .block-cta__item { position: relative; min-height: 600px; background-size: cover; background-position: center; background-color: var(--itm-black); display: flex; align-items: center; overflow: hidden; }
.block-cta--full .block-cta__item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55)); pointer-events: none; }
/* Default left margin ensures the copy box never touches the viewport edge, even when
   iconName doesn't match a named position class (e.g. "Facebook"). Named position
   classes (top-left, top-right, etc.) on lines below override this as needed. */
.block-cta--full .block-cta__copy { position: relative; background: var(--itm-black); color: var(--itm-white); padding: 2rem; max-width: 386px; display: flex; flex-direction: column; gap: 1.5rem; margin: 0 0 0 max(var(--itm-layout-gutter), calc((100% - var(--itm-content-max)) / 2 + var(--itm-layout-gutter))); }
/* Overlay-position modifiers — driven by iconName field on the ctaItem */
/* Left/right offsets use the same formula as other constrained blocks so the copy box
   aligns with the content grid rather than a raw percentage of the viewport width. */
.block-cta--full .block-cta__item--pos-top-left .block-cta__copy { margin: 0 0 0 max(var(--itm-layout-gutter), calc((100% - var(--itm-content-max)) / 2 + var(--itm-layout-gutter))); }
.block-cta--full .block-cta__item--pos-top-right .block-cta__copy { margin: 0 max(var(--itm-layout-gutter), calc((100% - var(--itm-content-max)) / 2 + var(--itm-layout-gutter))) 0 auto; }
.block-cta--full .block-cta__item--pos-center-left .block-cta__copy { position: absolute; top: 50%; transform: translateY(-50%); left: max(var(--itm-layout-gutter), calc((100% - var(--itm-content-max)) / 2 + var(--itm-layout-gutter))); }
.block-cta--full .block-cta__item--pos-center-right .block-cta__copy { position: absolute; top: 50%; transform: translateY(-50%); right: max(var(--itm-layout-gutter), calc((100% - var(--itm-content-max)) / 2 + var(--itm-layout-gutter))); }
.block-cta--full .block-cta__item--pos-bottom-left .block-cta__copy { position: absolute; bottom: 5%; left: max(var(--itm-layout-gutter), calc((100% - var(--itm-content-max)) / 2 + var(--itm-layout-gutter))); }
.block-cta--full .block-cta__item--pos-bottom-right .block-cta__copy { position: absolute; bottom: 5%; right: max(var(--itm-layout-gutter), calc((100% - var(--itm-content-max)) / 2 + var(--itm-layout-gutter))); }
/* Half-width item: horizontal split, image and copy side by side */
.block-cta--half .block-cta__item { display: grid; grid-template-columns: 1fr 1fr; background: var(--itm-black); color: var(--itm-white); border-radius: 4px; overflow: hidden; }
.block-cta--half .block-cta__item:not(.block-cta__item--with-image) { grid-template-columns: 1fr; }
.block-cta--half .block-cta__media { background-color: var(--itm-dark-grey); background-size: cover; background-position: center; min-height: 240px; }
.block-cta--half .block-cta__copy { padding: 2rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
/* Shared text styling */
.block-cta__tagline { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--itm-yellow); font-weight: 700; }
.block-cta__title { font-family: 'Eurostile-CondensedBold', 'Arial Narrow', Arial, sans-serif; font-size: 40px; font-weight: 700; color: var(--itm-white); line-height: 1.0; margin: 0; text-transform: uppercase; letter-spacing: -0.4px; align-self: stretch; }
.block-cta__title span { display: block; }
.block-cta__description { font-family: var(--itm-font-body); font-size: 20px; font-style: normal; font-weight: 400; line-height: 1.2; letter-spacing: -0.4px; color: var(--itm-white); margin: 0; align-self: stretch; font-feature-settings: 'liga' off, 'clig' off; leading-trim: both; text-edge: cap; }
.block-cta__item--pos-top-right .block-cta__description,
.block-cta__item--pos-bottom-right .block-cta__description,
.block-cta__item--pos-center-right .block-cta__description { font-size: 16px; letter-spacing: -0.32px; }
.block-cta__button { align-self: flex-start; }
/* Mobile — Figma 375px: copy pinned to bottom, full width */
@media (max-width: 768px) {
    .block-cta { padding: 2rem 1rem; }
    .block-cta--full { padding: 0; }
    .block-cta--full .block-cta__item { min-height: 600px; }
    .block-cta--full .block-cta__copy {
        position: absolute !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
        top: auto !important; transform: none !important;
        margin: 0 !important; max-width: none; padding: 32px; gap: 24px;
    }
    .block-cta__title { font-size: 28px; line-height: 1.1; letter-spacing: -0.3px; }
    .block-cta__description { font-size: 16px; line-height: 1.4; letter-spacing: -0.32px; }
    .block-cta__button { width: 100%; justify-content: center; }
    .block-cta--half .block-cta__inner { grid-template-columns: 1fr; }
    .block-cta--half .block-cta__item { grid-template-columns: 1fr; }
    .block-cta--half .block-cta__media { min-height: 180px; }
}

/* ============================================================
   fullWidthCtaBlock
   ============================================================ */
.block-fullwidth-cta { display: block; padding: 4rem 2rem; color: var(--itm-white); text-decoration: none; background-color: var(--itm-black); background-size: cover; background-position: center; position: relative; min-height: 280px; }
.block-fullwidth-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2)); }
.block-fullwidth-cta__inner { position: relative; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.5rem; }
.block-fullwidth-cta__highlight { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--itm-yellow); font-weight: 700; }
.block-fullwidth-cta__title { font-size: 2.5rem; font-weight: 800; line-height: 1.1; }
.block-fullwidth-cta__arrow { display: inline-block; margin-top: 1rem; font-size: 2rem; color: var(--itm-yellow); }
.block-fullwidth-cta:hover .block-fullwidth-cta__arrow { transform: translateX(0.5rem); transition: transform 0.2s; }
@media (max-width: 768px) {
    .block-fullwidth-cta { padding: 2.5rem 1.25rem; min-height: 200px; }
    .block-fullwidth-cta__title { font-size: 1.75rem; }
    .block-fullwidth-cta__arrow { font-size: 1.5rem; }
}

/* ============================================================
   gridContainerBlock (includes _gridCarouselItem sub-partial styles)
   ============================================================ */
/* Figma: bg dark-grey, padding 100px 134px, gap 64px between header and grid, white text */
.block-grid-container { padding: 64px 0; background: var(--itm-dark-grey); color: var(--itm-white); }
.block-grid-container__inner { max-width: var(--itm-content-max); margin: 0 auto; padding: 0 40px; display: flex; flex-direction: column; gap: 64px; }
.block-grid-container__header { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
/* Figma: Eurostile Condensed Bold 40px, letter-spacing -0.8px, white, max-width 536px */
.block-grid-container__header h2 { font-size: 40px; font-family: 'Eurostile-CondensedBold', 'Arial Narrow', Arial, sans-serif; color: var(--itm-white); margin: 0 0 8px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.8px; max-width: 536px; line-height: 1.2; }
/* Figma: Inter Regular 20px, white, letter-spacing -0.4px */
.block-grid-container__header p { font-size: 20px; color: var(--itm-white); margin: 0; letter-spacing: -0.4px; max-width: 536px; }
.block-grid-container__cta { color: var(--itm-yellow); font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.block-grid-container__cta:hover { text-decoration: underline; }
.block-grid-container__grid { display: grid; gap: 32px; }
.block-grid-container--large .block-grid-container__grid     { grid-template-columns: repeat(2, 1fr); }
.block-grid-container--medium .block-grid-container__grid    { grid-template-columns: repeat(3, 1fr); }
.block-grid-container--small .block-grid-container__grid     { grid-template-columns: repeat(4, 1fr); }
.block-grid-container--extrasmall .block-grid-container__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
/* Figma cards: black bg, image right, copy left */
.gc-item { background: var(--itm-black); border: 0; border-radius: 0; overflow: hidden; position: relative; }
.block-grid-container--medium .gc-item { height: 150px; }
.block-grid-container--large  .gc-item { height: 250px; }
.gc-item__link { color: inherit; text-decoration: none; display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
/* Yellow bottom accent strip */
.gc-item::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 6px; background: var(--itm-yellow); }
.gc-item__media { background-size: cover; background-position: center; background-color: var(--itm-dark-grey); order: 2; height: 100%; }
.gc-item__body { padding: 20px 20px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; order: 1; color: var(--itm-white); }
.gc-item__icon { display: inline-block; padding: 4px 8px; background: var(--itm-bone-white); border-radius: 3px; font-family: monospace; font-size: 12px; color: var(--itm-black); }
/* Figma: Inter Black 24px (medium), line-height 1.2, letter-spacing -0.48px */
.gc-item__title { font-size: 24px; color: var(--itm-white); margin: 0; font-weight: 900; line-height: 1.2; letter-spacing: -0.48px; font-family: var(--itm-font-body); text-transform: none; }
.block-grid-container--large .gc-item__title { font-size: 28px; }
.gc-item__subtitle { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }
.gc-item__rich { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.8); }
/* ── Joinery special-card layout — scoped via ViewData joineryStyle flag.
   Only activates for the joinery-special-tiles set (key e778aa59…).
   Zero impact on any other page or card type. ── */
.gc-item--joinery { flex: 1 0 0; min-width: 0; height: auto !important; background: none !important; overflow: visible; position: static; }
.gc-item--joinery::after { display: none; }
.gc-item--joinery .gc-item__link { display: flex; flex-direction: column; gap: 10px; height: auto; text-decoration: none; }
/* Tag: "ARCHITECTURAL" (yellow) + "DETAILS" (white) — Eurostile Condensed Bold 24px */
.gc-item--joinery .gc-item__tag { display: flex; flex-direction: column; gap: 0; }
.gc-item--joinery .gc-item__tag-line1 { font-family: 'Eurostile-CondensedBold', 'Arial Narrow', Arial, sans-serif; font-size: 24px; font-weight: 700; color: var(--itm-yellow); text-transform: uppercase; line-height: 1.1; letter-spacing: -0.24px; }
.gc-item--joinery .gc-item__tag-line2 { font-family: 'Eurostile-CondensedBold', 'Arial Narrow', Arial, sans-serif; font-size: 24px; font-weight: 700; color: var(--itm-white); text-transform: uppercase; line-height: 1.1; letter-spacing: -0.24px; }
/* Image: height 250px, flex-shrink 0, align-self stretch fills full card width */
.gc-item--joinery .gc-item__media { width: 100%; height: 250px; flex-shrink: 0; align-self: stretch; order: unset; background-color: #fff; background-size: cover; background-position: center; }
/* Body */
.gc-item--joinery .gc-item__body { padding: 0; display: flex; flex-direction: column; gap: 16px; order: unset; justify-content: flex-start; align-self: stretch; }
/* Card title: Inter Black 28px, line-height normal, wraps naturally */
.gc-item--joinery .gc-item__content-title { font-family: var(--itm-font-body); font-size: 24px; font-style: normal; font-weight: 900; color: var(--itm-white); line-height: normal; margin: 0; align-self: stretch; }
/* Description: 76px fixed height, overflow hidden, multi-line text clipped */
.gc-item--joinery .gc-item__rich { font-family: var(--itm-font-body); font-size: 16px; font-style: normal; font-weight: 400; line-height: normal; color: var(--itm-white); align-self: stretch; overflow: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* Grid: 3 equal columns, 32px gap — uses standard inner padding so cards stay within page gutter */
.block-grid-container:has(.gc-item--joinery) .block-grid-container__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.gc-item--logocard .gc-item__body { display: none; }
.gc-item--iconcard { text-align: center; padding: 1.5rem 1rem; background: var(--itm-bone-white); height: auto; }
.gc-item--iconcard .gc-item__link { display: block; height: auto; }
.gc-item--iconcard .gc-item__title { color: var(--itm-black); font-size: 15px; }
@media (max-width: 1100px) {
    .block-grid-container { padding: 60px 60px; }
    .block-grid-container__header h2 { font-size: 32px; }
}
@media (max-width: 768px) {
    .block-grid-container { padding: 64px 0; }
    .block-grid-container__inner { gap: 64px; padding: 0 32px; }
    .block-grid-container--large .block-grid-container__grid,
    .block-grid-container--medium .block-grid-container__grid,
    .block-grid-container--small .block-grid-container__grid { grid-template-columns: 1fr 1fr; }
    .block-grid-container--medium .gc-item,
    .block-grid-container--large .gc-item { height: auto; }
    .gc-item__link { grid-template-columns: 1fr; }
    .gc-item__media { aspect-ratio: 16/9; order: 1; height: auto; }
    .gc-item__body { order: 2; padding: 16px; }
    .block-grid-container__header h2 { font-size: 1.5rem; }
    .block-grid-container__cta { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 480px) {
    .block-grid-container--large .block-grid-container__grid,
    .block-grid-container--medium .block-grid-container__grid,
    .block-grid-container--small .block-grid-container__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   heroBannerBlock
   ============================================================ */
.block-hero-banner { position: relative; color: var(--itm-white); padding: 7rem 2rem; text-align: center; background-color: var(--itm-black); background-size: cover; background-position: center; }
.block-hero-banner::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.80); }
.block-hero-banner__inner { position: relative; max-width: 900px; margin: 0 auto; }
.block-hero-banner__headline { font-size: 3.5rem; margin: 0 0 1rem; line-height: 1.1; font-weight: 800; }
.block-hero-banner__intro { font-size: 1.4rem; margin: 0 0 2rem; opacity: 0.95; }
.block-hero-banner__cta { display: inline-block; padding: 1rem 2.5rem; background: var(--itm-yellow); color: var(--itm-black); text-decoration: none; font-weight: 700; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; transition: background 0.2s; }
.block-hero-banner__cta:hover { filter: brightness(0.92); }
@media (max-width: 768px) {
    .block-hero-banner { padding: 4rem 1.25rem; }
    .block-hero-banner__headline { font-size: 2rem; }
    .block-hero-banner__intro { font-size: 1.1rem; }
    .block-hero-banner__cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* ============================================================
   heroCarouselBlock
   ============================================================ */
/*
 * Figma node 1534:12591.
 * Section: position relative, black bg, overflow hidden.
 * Slide: absolute inset-0, flex-col align-items:flex-end, padding 64px 134px 32px.
 * Image: absolute left:139px top:44px width:657px height:369px (Figma pixel coords).
 * Title-block (bg-black, p-16px) + body-block (bg-black, p-16px) stacked in copy.
 * Dots: position:absolute bottom:24px centered.
 */
.block-hero-carousel { position: relative; background: var(--itm-black); color: var(--itm-white); overflow: hidden; width: 100%; max-width: 100%; box-sizing: border-box; }
.block-hero-carousel__track { position: relative; min-height: 640px; width: 100%; overflow: hidden; }
.block-hero-carousel__slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: flex-end;
    padding-top: 64px;
    padding-bottom: 32px;
    padding-left: max(134px, calc((100% - var(--itm-content-max)) / 2));
    padding-right: max(134px, calc((100% - var(--itm-content-max)) / 2));
    gap: 32px;
    opacity: 0; transition: opacity 0.5s ease;
}
.block-hero-carousel__slide.is-active { opacity: 1; }
.block-hero-carousel__media { position: absolute; left: max(174px, calc((100% - var(--itm-content-max)) / 2 + var(--itm-layout-gutter))); top: 44px; width: 657px; height: 369px; overflow: hidden; }
.block-hero-carousel__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.block-hero-carousel--right .block-hero-carousel__slide { align-items: flex-start; }
.block-hero-carousel--right .block-hero-carousel__media { left: auto; right: max(174px, calc((100% - var(--itm-content-max)) / 2 + var(--itm-layout-gutter))); }
/* Image-only variant — used for highlight imagery sections mid-page (Supercars, Sail GP).
   Track is sized to (content-max - 2×gutter) so its left/right edges align exactly with
   the page text content on every viewport, matching the 40px gutter all other blocks use. */
/* bottom padding = dot size (12px) + desired gap (16px) + dots bottom offset (24px) = 52px minimum.
   Using 3.5rem (56px) gives the dots 8px of clear space below the image track. */
.block-hero-carousel--image-only { padding: 2rem 0 3.5rem; }
.block-hero-carousel--image-only .block-hero-carousel__slide { padding: 0; }
.block-hero-carousel--image-only .block-hero-carousel__track {
    width: calc(100% - 2 * var(--itm-layout-gutter));
    max-width: calc(var(--itm-content-max) - 2 * var(--itm-layout-gutter));
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}
.block-hero-carousel--image-only .block-hero-carousel__media { position: absolute; inset: 0; width: 100%; height: 100%; top: 0; left: 0; overflow: hidden; }
/* min-width ensures short titles (e.g. "COMMUNITY / SUPPORT") still extend left
   far enough to overlap the image, matching the visual style of wider-title slides. */
.block-hero-carousel__copy { display: flex; flex-direction: column; align-items: flex-end; position: relative; z-index: 1; min-width: 50%; }
.block-hero-carousel--right .block-hero-carousel__copy { align-items: flex-start; }
.block-hero-carousel__tagline {
    display: inline-block; padding: 4px 12px; margin-bottom: 12px;
    background: var(--itm-black); color: var(--itm-white);
    font-size: 0.85rem; font-family: var(--itm-font-body);
    text-transform: uppercase; letter-spacing: 0.1em;
}
/* min-width on title-block only — ensures slides with short titles (e.g.
   "COMMUNITY / SUPPORT") still have the title extend far enough left to overlap
   the image, matching the Figma design (node 2239:14060). The body (description
   + CTA) intentionally stays narrow and does NOT overlap the image. */
.block-hero-carousel__title-block { background: var(--itm-black); padding: 16px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-width: min(580px, 40vw); }
.block-hero-carousel__title { font-family: 'Eurostile-CondensedBold', 'Arial Narrow', Arial, sans-serif; font-size: 96px; font-weight: 700; line-height: 1.2; letter-spacing: -1.92px; margin: 0; }
.block-hero-carousel__title-solid   { display: block; color: var(--itm-white); }
.block-hero-carousel__title-outline { display: block; color: transparent; -webkit-text-stroke: 2px var(--itm-white); }
.block-hero-carousel__body { background: var(--itm-black); padding: 16px; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.block-hero-carousel__description { font-family: var(--itm-font-body); font-size: 20px; font-weight: 400; letter-spacing: -0.4px; line-height: 1.2; margin: 0; color: var(--itm-white); max-width: 344px; }
.block-hero-carousel__cta { /* visual styles from .itm-btn */ }
.block-hero-carousel__cta-arrow { display: inline-flex; align-items: center; justify-content: center; }
.block-hero-carousel__dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.block-hero-carousel__dot { position: relative; width: 12px; height: 12px; border: 2px solid var(--itm-white); border-radius: 50%; background: transparent; cursor: pointer; padding: 0; transition: background 0.2s; }
.block-hero-carousel__dot.is-active { background: var(--itm-yellow); border-color: var(--itm-yellow); }
@media (max-width: 1024px) {
    .block-hero-carousel__track { min-height: 460px; }
    .block-hero-carousel__slide { padding: 48px; }
    .block-hero-carousel__title { font-size: 64px; }
    .block-hero-carousel__media { left: 48px; width: 420px; height: 280px; }
    .block-hero-carousel--right .block-hero-carousel__media { right: 48px; left: auto; }
    .block-hero-carousel__copy { min-width: 55%; }
}
/* Mobile — image absolute top, copy justified to bottom */
@media (max-width: 768px) {
    .block-hero-carousel__track { min-height: 580px; }
    .block-hero-carousel__slide { padding: 32px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
    .block-hero-carousel__media { position: absolute; left: 0; top: 0; right: 0; bottom: auto; width: 100%; height: 287px; overflow: hidden; }
    .block-hero-carousel__copy { align-items: flex-start; width: 100%; }
    .block-hero-carousel__title-block { background: transparent; padding: 0; display: block; }
    .block-hero-carousel__title { font-size: 40px; letter-spacing: -0.8px; white-space: nowrap; line-height: 1.2; margin: 0; }
    .block-hero-carousel__title span { background: var(--itm-black); padding: 8px; display: block; }
    .block-hero-carousel__title-outline { -webkit-text-stroke: 2px var(--itm-white); }
    .block-hero-carousel__body { padding: 8px; gap: 32px; width: 100%; }
    .block-hero-carousel__description { font-size: 16px; letter-spacing: -0.32px; line-height: 1.2; max-width: 100%; }
    .block-hero-carousel__cta { font-size: 16px; }
    .block-hero-carousel__dots { position: relative; bottom: auto; left: auto; transform: none; width: 100%; justify-content: center; padding-top: 48px; padding-bottom: 24px; }
    .block-hero-carousel__dot::after { content: ''; position: absolute; inset: -16px; }
}

/* ============================================================
   imageTextBlock
   ============================================================ */
.block-imagetext { padding: 6.25rem 0; background: var(--itm-black); color: var(--itm-white); }
/* Figma spec: display:flex; justify-content:space-between; align-items:flex-start; align-self:stretch */
.block-imagetext__inner { max-width: var(--itm-content-max); margin: 0 auto; padding: 0 var(--itm-layout-gutter); display: flex; justify-content: space-between; align-items: flex-start; gap: 120px; }
.block-imagetext__media { overflow: hidden; flex: 1 0 0; max-width: 700px; min-width: 0; }
.block-imagetext__copy  { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; flex: 0 0 350px; min-width: 0; }
/* --right: copy LEFT, image RIGHT — DOM is [media,copy]; row-reverse swaps them so media ends up right */
.block-imagetext--right .block-imagetext__inner { flex-direction: row-reverse; }
/* --left: image LEFT, copy RIGHT — natural DOM order [media,copy] is already correct, no override needed */
.block-imagetext--no-media { padding: 2.5rem 0; }
.block-imagetext--no-media .block-imagetext__inner { flex-direction: column; max-width: var(--itm-content-max); }
.block-imagetext--no-media .block-imagetext__copy { flex: none; width: auto; max-width: none; }
.block-imagetext--no-media .block-imagetext__copy h2 { max-width: none; }
.block-imagetext--no-media .block-imagetext__body { font-size: 17px; }
.block-imagetext--no-media .block-imagetext__body p { font-size: 17px; }
.block-imagetext--no-media .block-imagetext__body h3 { margin-top: 0; }
.block-imagetext__media img { width: 100%; height: auto; display: block; }
/* Responsive video wrapper — 16:9 aspect ratio */
.block-imagetext__video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 4px; overflow: hidden; background: var(--itm-black); }
.block-imagetext__video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
/* Copy typography — margin removed; gap on flex parent handles spacing */
/* max-width forces wrap after "NATIONAL" — web font renders ~5% narrower than Figma's Eurostile Condensed,
   so "ITM NATIONAL SUPPORT" (~345px) fits in the 350px column but shouldn't. 260px sits between
   "ITM NATIONAL" (~207px) and "SUPPORT OFFICE" (~240px) safely, causing the correct 2-line break. */
.block-imagetext__copy h2 { font-family: "Eurostile Condensed", "Eurostile-CondensedBold", "Arial Narrow", Arial, sans-serif; font-size: 40px; font-weight: 700; line-height: 1.0; letter-spacing: -0.4px; text-transform: uppercase; color: #FFF; margin: 0; max-width: 350px; }
/* Body is itself a flex column so the description <p> and .nso-contact both get gap: 24px between them */
.block-imagetext__body { font-family: var(--itm-font-body); font-size: 20px; font-style: normal; font-weight: 400; line-height: normal; color: #FFF; margin: 0; display: flex; flex-direction: column; gap: 24px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* Paragraphs fill the copy column naturally — no artificial max-width constraint. */
.block-imagetext__body p { margin: 0; font-size: 20px; font-family: var(--itm-font-body); font-weight: 400; }
.block-imagetext__body h3 { margin-top: 2rem; margin-bottom: 0; font-family: "Eurostile Condensed", "Eurostile-CondensedBold", "Arial Narrow", Arial, sans-serif; font-weight: 700; text-transform: uppercase; color: #FFF; font-size: 40px; line-height: 1.0; letter-spacing: -0.4px; }
/* NSO contact info rows — icon + text layout matching Figma node 2819:20410 */
.block-imagetext__body .nso-contact { display: flex; flex-direction: column; gap: 24px; }
.block-imagetext__body .nso-contact__row { display: flex; gap: 10px; align-items: flex-start; font-family: "Inter", sans-serif; font-size: 20px; font-style: normal; font-weight: 400; line-height: normal; color: #FFF; }
.block-imagetext__body .nso-contact__icon { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 3px; color: #FFF; }
/* Contact row spans: flex items so text wraps within its column, not stretched across the full row */
.block-imagetext__body .nso-contact__row > span { flex: 1 0 0; min-width: 1px; }
/* Physical address (row 1): constrain to ~175px so "Rosedale, Auckland 0632" wraps to its own line */
.block-imagetext__body .nso-contact__row:nth-child(1) > span { max-width: 175px; }
/* Postal address (row 2): fixed 158px matching Figma's w-[158.5px] spec */
.block-imagetext__body .nso-contact__row:nth-child(2) > span { flex: none; width: 158px; }
.block-imagetext__cta { align-self: flex-start; }
.block-imagetext__copy a:not(.itm-btn) { color: var(--itm-white); text-decoration: underline; text-decoration-color: var(--itm-white); }
@media (max-width: 768px) {
    .block-imagetext { padding: 3rem 0; }
    .block-imagetext__inner { flex-direction: column; gap: 2rem; padding: 0 32px; }
    /* Reset --right row-reverse so image appears above copy on mobile (natural DOM order) */
    .block-imagetext--right .block-imagetext__inner { flex-direction: column; }
    .block-imagetext__media { flex: none; max-width: none; width: 100%; }
    .block-imagetext__copy { flex: none; width: 100%; }
    .block-imagetext__copy h2 { font-size: 1.875rem; }
    .block-imagetext__cta { width: 100%; justify-content: center; }
}

/* ============================================================
   For The Trade page — image+text sections match Figma exactly
   (node 4488:4189 "Your Trusted…" image-right, 4488:4199 "Local Service…" image-left).
   Figma main box: display:flex; justify-content:space-between; align-items:flex-start;
   350px copy box, ≤700px image box. Scoped via the .ftt-blocks wrapper (ProductCategoryPage.cshtml)
   so the shared imageTextBlock and every other page that uses it stay untouched.
   ============================================================ */
.ftt-blocks .block-imagetext__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.ftt-blocks .block-imagetext--right .block-imagetext__inner { flex-direction: row-reverse; }
.ftt-blocks .block-imagetext__copy  { flex: 0 0 350px; max-width: 350px; }
.ftt-blocks .block-imagetext__media { flex: 0 1 700px; max-width: 700px; }
@media (max-width: 768px) {
    .ftt-blocks .block-imagetext__inner,
    .ftt-blocks .block-imagetext--right .block-imagetext__inner { flex-direction: column; gap: 1.5rem; }
    .ftt-blocks .block-imagetext__copy,
    .ftt-blocks .block-imagetext__media { flex: 1 1 auto; max-width: none; width: 100%; }
}

/* ============================================================
   Careers page — image+text section matches Figma node 4664:26341.
   350px copy left, ≤700px image right, 48px gap, tops aligned.
   Scoped via .careers-blocks wrapper in ProductCategoryPage.cshtml
   so no other page that uses imageTextBlock is affected.
   ============================================================ */
.careers-blocks .block-imagetext--right .block-imagetext__inner { display: flex; flex-direction: row-reverse; justify-content: flex-start; align-items: flex-start; gap: 48px; }
.careers-blocks .block-imagetext--right .block-imagetext__copy  { flex: 0 0 350px; max-width: 350px; }
.careers-blocks .block-imagetext--right .block-imagetext__media { flex: 1 0 0; max-width: 700px; }
.careers-blocks .block-imagetext__body { font-size: 20px; }
.careers-blocks .block-imagetext__body p { font-size: 20px; }
.careers-blocks .block-imagetext--no-media .block-imagetext__body { font-size: 20px; }
.careers-blocks .block-imagetext--no-media .block-imagetext__body p { font-size: 20px; }
@media (max-width: 768px) {
    .careers-blocks .block-imagetext--right .block-imagetext__inner { flex-direction: column; gap: 1.5rem; }
    .careers-blocks .block-imagetext--right .block-imagetext__copy,
    .careers-blocks .block-imagetext--right .block-imagetext__media { flex: 1 1 auto; max-width: none; width: 100%; }
}

/* ============================================================
   product-page-blocks — brand pages (e.g. Sika). Flex layout:
   justify-between, 350px copy, ≤700px image. Uses standard gutter
   (var(--itm-layout-gutter)) so left/right edges align with the
   breadcrumb and hero on the same page.
   ============================================================ */
.product-page-blocks .block-imagetext__inner { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 var(--itm-layout-gutter); max-width: var(--itm-content-max); }
.product-page-blocks .block-imagetext--right .block-imagetext__inner { flex-direction: row-reverse; }
.product-page-blocks .block-imagetext__copy  { flex: 0 0 350px; max-width: 350px; }
.product-page-blocks .block-imagetext__media { flex: 1 0 0; max-width: 700px; }
.product-page-blocks .block-imagetext__body { font-size: 20px; }
.product-page-blocks .block-imagetext__body p { font-size: 20px; }
@media (max-width: 768px) {
    .product-page-blocks .block-imagetext__inner,
    .product-page-blocks .block-imagetext--right .block-imagetext__inner { flex-direction: column; gap: 2rem; padding: 0 32px; }
    .product-page-blocks .block-imagetext__copy,
    .product-page-blocks .block-imagetext__media { flex: 1 1 auto; max-width: none; width: 100%; }
    .product-page-blocks .block-imagetext__body,
    .product-page-blocks .block-imagetext__body p { font-size: 16px; }
}

/* Joinery cards — responsive breakpoints */
@media (max-width: 1024px) {
    .block-grid-container:has(.gc-item--joinery) .block-grid-container__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
    .block-grid-container:has(.gc-item--joinery) .block-grid-container__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   pageListingBlock
   ============================================================ */
.block-page-listing { padding: 4rem 0; background: var(--itm-dark-grey); color: var(--itm-white); font-family: var(--itm-font-display); }
.block-page-listing__inner { max-width: var(--itm-content-max); margin: 0 auto; padding: 0 var(--itm-layout-gutter); }
.block-page-listing__heading { font-size: 1.75rem; margin: 0 0 1rem; color: var(--itm-white); font-weight: 800; text-transform: uppercase; letter-spacing: -0.5px; }
.block-page-listing__description { font-size: 1rem; line-height: 1.4; color: var(--itm-white); opacity: 0.95; margin: 0 0 2.5rem; max-width: 560px; font-family: var(--itm-font-body); }
.block-page-listing__grid { display: grid; gap: 2rem; }
.block-page-listing--two .block-page-listing__grid { grid-template-columns: repeat(2, 1fr); }
.block-page-listing--three .block-page-listing__grid { grid-template-columns: repeat(3, 1fr); }
.block-page-listing--four .block-page-listing__grid { grid-template-columns: repeat(4, 1fr); }
.block-page-listing__card { display: grid; grid-template-columns: 1fr 1fr; background: var(--itm-black); color: var(--itm-white); text-decoration: none; overflow: hidden; position: relative; }
.block-page-listing__card::after { content: ''; position: absolute; bottom: -23px; left: 0; right: 0; height: 29px; background: var(--itm-yellow) url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5L15 15M15 15H7M15 15V7' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 20px 20px; transition: bottom 0.2s ease; }
.block-page-listing__card:hover::after { bottom: 0; }
.block-page-listing__card__image { background-size: cover; background-position: center; background-color: var(--itm-dark-grey); aspect-ratio: 1/1; order: 2; }
.block-page-listing__card__body { padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem; order: 1; }
.block-page-listing__card__title { margin: 0; font-size: 1.1rem; color: var(--itm-white); font-weight: 800; line-height: 1.15; letter-spacing: -0.3px; text-transform: none; }
.block-page-listing__card__description { margin: 0; color: var(--itm-white); opacity: 0.85; font-size: 0.9rem; line-height: 1.4; font-family: var(--itm-font-body); }
.block-page-listing__card__cta { color: var(--itm-yellow); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; font-family: var(--itm-font-body); margin-top: auto; }
.block-page-listing__empty { padding: 2rem; background: var(--itm-black); border-radius: 4px; color: var(--itm-white); opacity: 0.7; font-family: var(--itm-font-body); }
.block-page-listing__empty code { background: var(--itm-dark-grey); padding: 0.1rem 0.3rem; border-radius: 2px; font-family: monospace; }
@media (max-width: 768px) {
    .block-page-listing { padding: 2rem 1rem; }
    .block-page-listing--two .block-page-listing__grid,
    .block-page-listing--three .block-page-listing__grid,
    .block-page-listing--four .block-page-listing__grid { grid-template-columns: 1fr; }
    .block-page-listing__card { grid-template-columns: 1fr; }
    .block-page-listing__card__image { aspect-ratio: 16/9; order: 1; }
    .block-page-listing__card__body { order: 2; }
    .block-page-listing__heading { font-size: 1.35rem; }
}

/* ============================================================
   priorityCardFullWidthBlock
   ============================================================ */
.block-priority-card { background: var(--itm-yellow); color: var(--itm-black); padding: 4rem 2rem; }
.block-priority-card__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.block-priority-card__copy { flex: 1 1 60%; }
.block-priority-card__title { font-size: 2.5rem; line-height: 1.1; font-weight: 800; margin: 0 0 1rem; }
.block-priority-card__title span { display: block; }
.block-priority-card__description { font-size: 1.15rem; margin: 0; opacity: 0.95; max-width: 60ch; }
.block-priority-card__cta { background: var(--itm-white); color: var(--itm-black); padding: 1rem 2rem; text-decoration: none; font-weight: 700; border-radius: 4px; white-space: nowrap; transition: transform 0.2s; }
.block-priority-card__cta:hover { transform: translateX(0.25rem); }
@media (max-width: 768px) {
    .block-priority-card { padding: 2.5rem 1.25rem; }
    .block-priority-card__inner { flex-direction: column; align-items: flex-start; }
    .block-priority-card__title { font-size: 1.75rem; }
    .block-priority-card__cta { min-height: 44px; display: inline-flex; align-items: center; align-self: stretch; justify-content: center; }
}

/* ============================================================
   promoCardsBlock
   ============================================================ */
/* Figma: bg dark-grey, padding 100px 134px, gap 64px between header copy and card grid */
.block-promo-cards { padding: 64px 0; background: var(--itm-dark-grey); color: var(--itm-white); font-family: var(--itm-font-display); }
.block-promo-cards__inner { max-width: var(--itm-content-max); margin: 0 auto; width: 100%; padding: 0 40px; display: flex; flex-direction: column; gap: 64px; }
/* Figma: header block wraps heading + description with gap-32px between them */
.block-promo-cards__header { display: flex; flex-direction: column; gap: 32px; }
/* Figma: Eurostile Condensed Bold 40px, line-height 1.2, letter-spacing -0.8px, max-width 536px */
.block-promo-cards__heading { font-size: 40px; line-height: 1.2; margin: 0; color: var(--itm-white); font-weight: 700; text-transform: uppercase; letter-spacing: -0.8px; max-width: 536px; font-family: 'Eurostile-CondensedBold', 'Arial Narrow', Arial, sans-serif; }
/* Figma: Inter Regular 20px, letter-spacing -0.4px */
.block-promo-cards__description { font-family: var(--itm-font-body); font-size: 20px; font-style: normal; font-weight: 400; line-height: 1.2; letter-spacing: -0.4px; color: var(--itm-white); margin: 0; max-width: 475px; align-self: stretch; font-feature-settings: 'liga' off, 'clig' off; leading-trim: both; text-edge: cap; }
/* Figma: 2-col row-gap 64px, 3-col row-gap 32px; column-gap 32px both */
.block-promo-cards__grid { display: grid; column-gap: 32px; row-gap: 64px; }
.block-promo-cards--two .block-promo-cards__grid   { grid-template-columns: repeat(2, 1fr); }
.block-promo-cards--three .block-promo-cards__grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
/* Cards — image right, copy box left, black bg, yellow bottom accent */
.block-promo-cards__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--itm-black); color: var(--itm-white); text-decoration: none; overflow: hidden; position: relative; }
.block-promo-cards__card::after { content: ''; position: absolute; bottom: -23px; left: 0; right: 0; height: 29px; background: var(--itm-yellow) url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5L15 15M15 15H7M15 15V7' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 20px 20px; transition: bottom 0.2s ease; }
.block-promo-cards__card:hover::after { bottom: 0; }
.block-promo-cards__card__image { background-size: cover; background-position: center; background-color: var(--itm-dark-grey); order: 2; }
/* Figma 2-col cards: min-h 250px (grows to fit copy + button; grid stretches both cards equal), copy box pt-24 pb-48 px-24, gap 16px */
.block-promo-cards--two .block-promo-cards__card { min-height: 250px; }
.page-blocks--dark-first .block-promo-cards--two .block-promo-cards__card { height: 339px; grid-template-columns: minmax(0, 56%) minmax(0, 44%); }
.page-blocks--dark-first .block-promo-cards--two .block-promo-cards__card__body { overflow: hidden; padding-right: 16px; }
.block-promo-cards__card__body { padding: 24px 24px 48px; display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; order: 1; }
/* Figma: Inter Black 28px, font-weight 900 */
.block-promo-cards__card__body h3 { margin: 0; font-size: 28px; color: var(--itm-white); font-weight: 900; line-height: normal; font-family: var(--itm-font-body); font-feature-settings: 'liga' off, 'clig' off; text-transform: none; }
.block-promo-cards--three .block-promo-cards__card__body h3 { font-size: 24px; font-weight: 900; font-style: normal; line-height: 120%; letter-spacing: -0.48px; color: #FFF; font-feature-settings: 'liga' off, 'clig' off; leading-trim: both; text-edge: cap; text-transform: none; }
.block-promo-cards__card__body p { margin: 0; color: var(--itm-white); font-size: 15px; line-height: 1.4; font-family: var(--itm-font-body); opacity: 0.85; }
.block-promo-cards__card__cta { margin-top: auto; align-self: flex-start; }
/* Figma 3-col cards: h-150px, p-[24px] all sides, title Inter Black 24px, letter-spacing -0.48px */
.block-promo-cards--three .block-promo-cards__card { height: 150px; grid-template-columns: minmax(0, 58%) minmax(0, 42%); }
.block-promo-cards--three .block-promo-cards__card__body { padding: 24px; gap: 8px; }
/* No-image cards: body spans full width. Auto-reverts once image is added. */
.block-promo-cards--three .block-promo-cards__card--no-image,
.block-promo-cards--two .block-promo-cards__card--no-image { grid-template-columns: 1fr !important; }
@media (max-width: 1100px) {
    .block-promo-cards { padding: 60px 60px; }
    .block-promo-cards__heading { font-size: 32px; }
}
/* Mobile — Figma 375px frame (merged from prior 900px intermediate) */
@media (max-width: 768px) {
    .block-promo-cards { padding: 64px 32px; }
    .block-promo-cards__inner { gap: 64px; padding: 0; }
    .block-promo-cards__heading { font-size: 30px; line-height: 1.1; letter-spacing: -0.3px; }
    .block-promo-cards__description { font-size: 16px; margin-top: 0; }
    .block-promo-cards--two .block-promo-cards__grid,
    .block-promo-cards--three .block-promo-cards__grid { grid-template-columns: 1fr; }
    .block-promo-cards--two .block-promo-cards__card,
    .block-promo-cards--three .block-promo-cards__card { height: auto; }
    .block-promo-cards__card__image { aspect-ratio: 16/9; order: 1; }
    .block-promo-cards__card__body { order: 2; padding: 20px; }
    /* TwoColumn: image 250px fixed on top, copy below */
    .block-promo-cards--two .block-promo-cards__card { display: flex; flex-direction: column; }
    .block-promo-cards--two .block-promo-cards__card__image { height: 250px; aspect-ratio: unset; order: 1; }
    .block-promo-cards--two .block-promo-cards__card__body { order: 2; padding: 24px; min-height: 170px; gap: 16px; justify-content: flex-start; }
    .block-promo-cards--two .block-promo-cards__card__body h3 { font-size: 28px; }
    .page-blocks--dark-first .block-promo-cards--two .block-promo-cards__card { height: auto; grid-template-columns: 1fr; }
    .page-blocks--dark-first .block-promo-cards--two .block-promo-cards__card__body { overflow: visible; padding-right: 24px; }
    /* ThreeColumn: keep horizontal split, fixed 150px */
    .block-promo-cards--three .block-promo-cards__card { height: 150px; display: grid; grid-template-columns: minmax(0, 58%) minmax(0, 42%); }
    .block-promo-cards--three .block-promo-cards__card__image { order: 2; height: 100%; aspect-ratio: unset; }
    .block-promo-cards--three .block-promo-cards__card__body { order: 1; padding: 24px; }
    .block-promo-cards--three .block-promo-cards__card__body h3 { font-size: 24px; letter-spacing: -0.48px; }
}

/* ============================================================
   promoFullWidthBlock
   ============================================================ */
/* Figma: full-bleed 600px height, padding 0 143px, rgba overlay */
.block-fullwidth-promo { position: relative; min-height: 600px; color: var(--itm-white); overflow: hidden; }
.block-fullwidth-promo__track { position: relative; min-height: 600px; }
.block-fullwidth-promo__slide {
    position: absolute; inset: 0;
    background-color: var(--itm-black); background-size: cover; background-position: center;
    opacity: 0; transition: opacity 0.5s;
    display: flex; align-items: center;
    padding-left:  max(var(--itm-layout-gutter), calc((100% - var(--itm-content-max)) / 2 + var(--itm-layout-gutter)));
    padding-right: max(var(--itm-layout-gutter), calc((100% - var(--itm-content-max)) / 2 + var(--itm-layout-gutter)));
}
/* Figma overlay: semi-transparent dark, not gradient */
.block-fullwidth-promo__slide::before { content: ''; position: absolute; inset: 0; background: rgba(51, 51, 51, 0.5); }
.block-fullwidth-promo--right .block-fullwidth-promo__slide { justify-content: flex-end; }
.block-fullwidth-promo__slide.is-active { opacity: 1; }
/* Figma: black box around copy, padding 32px, gap 24px, max-width 386px */
.block-fullwidth-promo__copy { position: relative; background: var(--itm-black); padding: 32px; display: flex; flex-direction: column; gap: 24px; max-width: 386px; }
.block-fullwidth-promo__tagline { display: inline-block; padding: 4px 10px; background: var(--itm-yellow); color: var(--itm-black); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; align-self: flex-start; }
/* Figma: Eurostile Condensed Bold 40px, letter-spacing -0.4px, uppercase, line-height 1 */
.block-fullwidth-promo__title { font-size: 40px; font-weight: 700; line-height: 1; margin: 0; text-transform: uppercase; letter-spacing: -0.4px; font-family: 'Eurostile-CondensedBold', 'Arial Narrow', Arial, sans-serif; }
.block-fullwidth-promo__title span { display: block; }
/* Figma: Inter Regular 20px, line-height 1.2, letter-spacing -0.4px */
.block-fullwidth-promo__description { font-size: 20px; line-height: 1.2; margin: 0; letter-spacing: -0.4px; font-family: var(--itm-font-body); }
.block-fullwidth-promo__cta { align-self: flex-start; }
.block-fullwidth-promo__dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.block-fullwidth-promo__dot { width: 10px; height: 10px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; }
.block-fullwidth-promo__dot.is-active { background: var(--itm-yellow); }
@media (max-width: 768px) {
    .block-fullwidth-promo { min-height: 600px; }
    .block-fullwidth-promo__track { min-height: 600px; }
    .block-fullwidth-promo__slide { padding-left: 32px; padding-right: 32px; }
    .block-fullwidth-promo__copy { max-width: 100%; padding: 32px; }
    .block-fullwidth-promo__title { font-size: 28px; }
    .block-fullwidth-promo__description { font-size: 16px; }
}
@media (max-width: 480px) {
    .block-fullwidth-promo { min-height: 300px; }
    .block-fullwidth-promo__track { min-height: 300px; }
    .block-fullwidth-promo__slide { padding: 0 16px; align-items: center; justify-content: center; }
    .block-fullwidth-promo__copy { padding: 20px; gap: 12px; }
    .block-fullwidth-promo__title { font-size: 22px; letter-spacing: -0.2px; }
    .block-fullwidth-promo__description { font-size: 14px; }
    .block-fullwidth-promo__cta { /* min-height from .itm-btn */ }
    .block-fullwidth-promo__tagline { font-size: 11px; }
}

/* ============================================================
   promoHalfWidthBlock
   ============================================================ */
.block-halfwidth-promo { padding: 3rem 0; }
.block-halfwidth-promo__inner { max-width: var(--itm-content-max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 0 var(--itm-layout-gutter); }
.block-halfwidth-promo__tile { display: block; aspect-ratio: 3/2; position: relative; color: var(--itm-white); text-decoration: none; background-color: var(--itm-black); background-size: cover; background-position: center; border-radius: 4px; overflow: hidden; transition: transform 0.2s; }
.block-halfwidth-promo__tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.65)); }
.block-halfwidth-promo__tile:hover { transform: translateY(-4px); }
.block-halfwidth-promo__tile__inner { position: relative; padding: 2rem; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.block-halfwidth-promo__tile__tagline { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--itm-yellow); font-weight: 700; margin-bottom: 0.5rem; }
.block-halfwidth-promo__tile__title { font-size: 1.75rem; font-weight: 800; line-height: 1.15; margin: 0; text-transform: none; }
.block-halfwidth-promo__tile__title span { display: block; }
.block-halfwidth-promo__tile__arrow { margin-top: 0.75rem; color: var(--itm-yellow); font-size: 1.5rem; }
@media (max-width: 768px) {
    .block-halfwidth-promo { padding: 1.5rem 0; }
    .block-halfwidth-promo__inner { grid-template-columns: 1fr; padding: 0 var(--itm-layout-gutter); gap: 1rem; }
    .block-halfwidth-promo__tile__inner { padding: 1.5rem 1rem; }
    .block-halfwidth-promo__tile__title { font-size: 1.35rem; }
    .block-halfwidth-promo__tile__arrow { min-height: 44px; display: flex; align-items: center; }
}

/* ============================================================
   richTextBlock
   ============================================================ */
.block-richtext { padding: 2.5rem 0; background: var(--itm-white); color: var(--itm-black); }
.block-richtext__inner { max-width: var(--itm-content-max); margin: 0 auto; padding: 0 var(--itm-layout-gutter); font-family: var(--itm-font-body); font-size: 1.05rem; line-height: 1.55; }
.block-richtext__inner h2 { font-family: var(--itm-font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.1; text-transform: uppercase; margin: 1.75rem 0 0.75rem; }
.block-richtext__inner h3 { font-family: var(--itm-font-display); font-weight: 700; font-size: 1.35rem; margin: 1.25rem 0 0.5rem; }
.block-richtext__inner p  { margin: 0 0 1rem; }
.block-richtext__inner ul,
.block-richtext__inner ol { margin: 0 0 1rem 1.5rem; }
.block-richtext__inner li { margin: 0 0 0.35rem; }
.block-richtext__inner a  { color: var(--itm-black); text-decoration: underline; text-decoration-color: var(--itm-yellow); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.block-richtext__inner a:hover { text-decoration-color: var(--itm-black); }
.block-richtext__inner img { max-width: 100%; height: auto; border-radius: 4px; margin: 1rem 0; }
.block-richtext__inner blockquote { margin: 1rem 0; padding: 0.5rem 1.25rem; border-left: 4px solid var(--itm-yellow); font-style: italic; color: rgba(0,0,0,0.85); }
.block-richtext__inner table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.block-richtext__inner table th,
.block-richtext__inner table td { border: 1px solid #ddd; padding: 0.5rem 0.75rem; text-align: left; }
.block-richtext__inner table th { background: rgba(0,0,0,0.03); font-weight: 700; }
@media (max-width: 768px) {
    .block-richtext { padding: 1.5rem 1rem; }
    .block-richtext__inner h2 { font-size: 1.35rem; }
    .block-richtext__inner h3 { font-size: 1.1rem; }
    .block-richtext__inner table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   scriptEmbedBlock
   ============================================================ */
.block-script-embed { padding: 0; background: var(--itm-black); display: block; }
.block-script-embed > div { display: block; }

/* ============================================================
   storeFinderBlock
   ============================================================ */
.block-store-finder { padding: 3rem 2rem; }
.block-store-finder__inner { max-width: 1100px; margin: 0 auto; }
.block-store-finder__map { height: 500px; border-radius: 4px; margin-bottom: 2rem; overflow: hidden; }
.block-store-finder__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.block-store-finder__card { background: var(--itm-white); border: 1px solid #e0e0e0; border-radius: 4px; padding: 1.25rem; }
.block-store-finder__card a { color: var(--itm-black); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.block-store-finder__card a:hover { color: var(--itm-yellow); }
.block-store-finder__meta { font-size: 0.85rem; color: #666; margin-top: 0.5rem; }
.block-store-finder__empty { text-align: center; color: #666; padding: 2rem; }
@media (max-width: 768px) {
    .block-store-finder { padding: 2rem 1rem; }
    .block-store-finder__map { height: 320px; }
}

/* ============================================================
   typeformEmbedBlock
   ============================================================ */
.block-typeform { padding: 3rem 2rem; background: var(--itm-black); }
.block-typeform__inner { max-width: 1100px; margin: 0 auto; }
@media (max-width: 768px) {
    .block-typeform { padding: 2rem 1rem; }
}

/* ============================================================
   videoBlock
   ============================================================ */
.block-video { padding: 4rem 0; background: var(--itm-black); color: var(--itm-white); }
.block-video__inner { max-width: var(--itm-content-max); margin: 0 auto; padding: 0 var(--itm-layout-gutter); display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }
.block-video--full .block-video__inner { grid-template-columns: 1fr; }
.block-video--right .block-video__embed { order: 2; }
.block-video__embed { position: relative; aspect-ratio: 16/9; }
.block-video__embed iframe { width: 100%; height: 100%; border: 0; border-radius: 4px; }
.block-video__caption { margin: 0.5rem 0 0; font-size: 0.9rem; color: rgba(255,255,255,0.6); font-style: italic; }
/* Copy column — white left border matching live site design, inspector: h4 32px Graphik */
.block-video__copy { border-left: 2px solid var(--itm-white); padding-left: 2rem; }
.block-video__copy h2 { font-family: Graphik, Helvetica, Arial, sans-serif; font-size: 32px; color: #FFFFFF; margin: 0 0 8px; font-weight: 700; line-height: 1.2; text-transform: none !important; letter-spacing: normal; }
.block-video__copy div { font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.85); }
.block-video__copy div p { margin: 0 0 1rem; }
.block-video--full .block-video__copy { border-left: none; padding-left: 0; max-width: 720px; margin: 1.5rem auto 0; text-align: center; }
@media (max-width: 768px) {
    .block-video { padding: 2rem 1rem; }
    .block-video__inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .block-video--right .block-video__embed { order: 0; }
    .block-video__copy h2 { font-size: 1.5rem; }
}

/* ============================================================
   Shared/_Breadcrumb
   ============================================================ */
.itm-breadcrumb { background: var(--itm-black); color: var(--itm-white); font-family: var(--itm-font-body); }
.itm-breadcrumb__inner { max-width: var(--itm-content-max); margin: 0 auto; padding: 16px var(--itm-layout-gutter); }
.itm-breadcrumb ol {
    list-style: none; padding: 0; margin: 0;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 13px; letter-spacing: var(--itm-tracking-normal);
}
.itm-breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.75); padding: 0; }
.itm-breadcrumb li + li::before {
    content: ''; display: inline-block; width: 24px; height: 24px; flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L1 11' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: 7px 12px; vertical-align: middle;
}
.itm-breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.itm-breadcrumb a:hover { color: var(--itm-yellow); }
.itm-breadcrumb li[aria-current="page"] span { color: var(--itm-white); font-weight: 400; }
.itm-breadcrumb__home { width: 18px; height: 18px; display: block; }
@media (max-width: 768px) {
    .itm-breadcrumb__inner { padding: 8px 32px; }
    .itm-breadcrumb ol { font-size: 12px; gap: 4px; }
    .itm-breadcrumb li + li::before { width: 18px; height: 18px; }
    .itm-breadcrumb__home { width: 14px; height: 14px; }
}

/* ============================================================
   Shared/_NewsletterSignup
   ============================================================ */
.itm-newsletter { background: #232323; color: #fff; }
.itm-newsletter__visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.itm-newsletter__inner {
    max-width: var(--itm-content-max); margin: 0 auto;
    display: flex; align-items: flex-end; gap: 32px;
    padding: 64px 40px;
}
.itm-newsletter__copy {
    display: flex; align-items: center; gap: 32px;
    flex: 1 0 0; min-width: 0;
}
.itm-newsletter__icon { flex: 0 0 40px; color: #fff; line-height: 0; }
.itm-newsletter__text { display: flex; flex-direction: column; gap: 12px; flex: 1 0 0; min-width: 0; }
.itm-newsletter .itm-newsletter__heading {
    margin: 0; font-family: Helvetica, Arial, sans-serif; font-weight: 700;
    font-size: 24px; line-height: 1.05; letter-spacing: -0.48px;
    color: #f3f1e3; text-transform: none;
}
.itm-newsletter__lede {
    margin: 0; font-family: Helvetica, Arial, sans-serif; font-weight: 400;
    font-size: 18px; line-height: 1.2; letter-spacing: -0.36px; color: #fff;
    max-width: 641px;
}
.itm-newsletter__form { display: flex; flex-direction: column; gap: 20px; flex: 0 0 auto; }
.itm-newsletter__field-row { display: flex; align-items: center; gap: 12px; }
.itm-newsletter__input {
    flex: 1 0 0; height: 48px; padding: 0 12px; min-width: 0;
    background: #fff; border: 2px solid #e0e0e0; border-radius: 8px; outline: none;
    font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 400;
    line-height: 1.4; letter-spacing: 0.08px; color: #333;
}
.itm-newsletter__input::placeholder { color: #616161; }
.itm-newsletter__input:focus { border-color: #fff200; }
.itm-newsletter__submit { flex: 0 0 auto; }
.itm-newsletter .itm-newsletter__submit,
.itm-newsletter .itm-newsletter__submit:hover { color: var(--itm-black); border: none; }
@media (max-width: 1024px) {
    .itm-newsletter__inner { padding: 48px 32px; gap: 32px; }
}
@media (max-width: 768px) {
    .itm-newsletter__inner { flex-direction: column; align-items: flex-start; padding: 64px 32px; gap: 50px; }
    .itm-newsletter__field-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .itm-newsletter__input { flex: none; width: 100%; }
    .itm-newsletter__submit { width: auto; align-self: center; }
}

/* ============================================================
   Shared/_Footer
   ============================================================ */
.itm-footer { font-family: var(--itm-font-body); color: var(--itm-white); background: var(--itm-black); }
.itm-footer * { box-sizing: border-box; }
.itm-footer a { color: inherit; text-decoration: none; }
.itm-footer a:hover { color: var(--itm-mid-grey); }
.itm-footer a:active { color: var(--itm-yellow); }
.itm-footer__visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.itm-footer__brand { background: var(--itm-bone-white); color: var(--itm-black); }
.itm-footer__brand__inner { max-width: var(--itm-content-max); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding: 40px; }
.itm-footer__brand__heading { margin: 0; font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.5px; color: var(--itm-black); }
.itm-footer__brand__copy { margin: 0; font-size: 15px; line-height: 1.5; color: #616161; }
.itm-footer__nav {
    display: flex; align-items: flex-start; gap: 48px;
    padding-top: 40px; padding-bottom: 40px;
    /* Scaled horizontal padding — content cap at --itm-content-max on wide
       viewports while preserving the dark band edge-to-edge */
    padding-left: max(40px, calc((100% - var(--itm-content-max)) / 2));
    padding-right: max(40px, calc((100% - var(--itm-content-max)) / 2));
    background: var(--itm-black);
}
.itm-footer__nav__logo { flex: 0 0 auto; }
.itm-footer__logo-svg { display: block; width: 117.039px; height: 61.914px; }
.itm-footer__nav__cols {
    display: flex; align-items: flex-start; align-content: flex-start;
    gap: 32px; flex: 1 0 0; flex-wrap: wrap;
}
.itm-footer__nav__col { flex: 1 1 140px; min-width: 120px; }
.itm-footer__nav__col--nso { flex: 1 1 200px; }
.itm-footer__nav__col__heading {
    margin: 0 0 32px; font-family: Helvetica, Arial, sans-serif; font-weight: 700; font-size: 18px;
    line-height: 1.2; color: #ecebe2; letter-spacing: -0.36px;
}
.itm-footer__nav__col__toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: none; border: none; padding: 0; cursor: default; text-align: left;
    margin-bottom: 32px;
}
.itm-footer__nav__col__toggle .itm-footer__nav__col__heading { margin-bottom: 0; }
a.itm-footer__nav__col__heading { text-decoration: none; }
a.itm-footer__nav__col__heading:hover { color: var(--itm-mid-grey); }
a.itm-footer__nav__col__heading:active { color: var(--itm-yellow); }
.itm-footer__nav__col__chevron-btn { background: none; border: none; padding: 0; cursor: default; display: none; flex: 0 0 auto; color: var(--itm-white); }
.itm-footer__nav__col__chevron { display: none; }
.itm-footer__nav__col--nso .itm-footer__nav__col__heading { color: #ecebe2; margin-bottom: 12px; }
.itm-footer__nav__col__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.itm-footer__nav__col__list li { margin: 0; padding: 0; }
.itm-footer__nav__col__list a { display: block; margin: 0; font-family: Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.4; color: var(--itm-white); letter-spacing: -0.32px; }
.itm-footer__nav__col__list a:hover { color: var(--itm-mid-grey); }
.itm-footer__nav__col__list a:active { color: var(--itm-yellow); }
.itm-footer__nav__col__viewall a { color: rgba(255,255,255,0.6); font-style: normal; }
.itm-footer__nav__col__viewall a:hover { color: var(--itm-mid-grey); }
.itm-footer__nav__col__viewall a:active { color: var(--itm-yellow); }
.itm-footer__social { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.itm-footer__social__link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: var(--itm-white);
    transition: background 0.15s, color 0.15s;
}
.itm-footer__social__link svg { width: 15px; height: 15px; }
.itm-footer__social .itm-footer__social__link:hover { background: var(--itm-yellow); color: var(--itm-black); }
.itm-footer__nso__address p { margin: 0 0 6px; font-family: Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.4; letter-spacing: -0.32px; color: var(--itm-white); }
.itm-footer__nso__phone { margin: 0 0 16px; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -0.32px; color: var(--itm-white); }
.itm-footer__apps__label { margin: 0 0 10px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 700; color: var(--itm-white); }
.itm-footer__apps__badges { display: flex; flex-direction: column; gap: 8px; }
.itm-footer__apps__badges--inline { flex-direction: row; flex-wrap: wrap; }
.itm-footer__apps__badge { display: inline-block; line-height: 0; }
.itm-footer__apps__badge svg { height: 36px; width: auto; }
.itm-footer__apps__badges--inline .itm-footer__apps__badge svg { height: 48px; width: auto; }
.itm-footer__legal { background: #cccccc; }
.itm-footer__legal__inner {
    max-width: var(--itm-content-max); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 14px 40px; flex-wrap: wrap;
}
.itm-footer__legal__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.itm-footer__legal__links a { font-size: 13px; color: var(--itm-black); }
.itm-footer__legal__links a:hover { color: var(--itm-dark-grey); }
.itm-footer__legal__copyright { margin: 0; font-size: 13px; color: var(--itm-dark-grey); }
@media (max-width: 900px) {
    .itm-footer__brand__inner,
    .itm-footer__nav,
    .itm-footer__legal__inner { padding-left: 20px; padding-right: 20px; }
    .itm-footer__nav { flex-direction: column; }
    .itm-footer__nav__cols { width: 100%; }
    .itm-footer__nav__col { flex: 1 1 140px; }
    .itm-footer__legal__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
    .itm-footer__brand__inner { padding: 32px; }
    .itm-footer__brand__heading { font-size: 20px; letter-spacing: -0.4px; }
    .itm-footer__brand__copy { font-size: 16px; }
    .itm-footer__nav { padding: 32px; gap: 48px; }
    .itm-footer__nav__cols { flex-direction: column; flex-wrap: nowrap; flex: unset; width: 100%; gap: 0; }
    .itm-footer__nav__col,
    .itm-footer__nav__col--nso { flex: unset; width: 100%; min-width: 0; }
    .itm-footer__nav__col__toggle {
        border-bottom: 1px solid rgba(255,255,255,0.25);
        padding: 16px 0; margin: 0;
    }
    .itm-footer__nav__col__toggle .itm-footer__nav__col__heading {
        font-size: 18px; letter-spacing: -0.36px; margin: 0;
    }
    .itm-footer__nav__col__chevron-btn { display: block; cursor: pointer; }
    .itm-footer__nav__col__chevron {
        display: block; color: var(--itm-white);
        transform: rotate(0deg); transition: transform 0.25s ease;
    }
    .itm-footer__nav__col.is-open .itm-footer__nav__col__chevron { transform: rotate(180deg); }
    .itm-footer__nav__col__toggle ~ .itm-footer__nav__col__list,
    .itm-footer__nav__col__toggle ~ .itm-footer__social { display: none; }
    .itm-footer__nav__col.is-open .itm-footer__nav__col__list {
        display: flex; flex-direction: column; padding: 16px 0 24px;
    }
    .itm-footer__nav__col.is-open .itm-footer__social { display: flex; }
    .itm-footer__nav__col--nso .itm-footer__nav__col__heading {
        font-size: 18px; letter-spacing: -0.36px;
        border-bottom: 1px solid rgba(255,255,255,0.25);
        padding: 16px 0; margin-bottom: 16px; display: block;
    }
    .itm-footer__logo-svg { width: 116px; height: 62px; }
    .itm-footer__social { gap: 32px; margin-top: 24px; }
    .itm-footer__social__link { width: 40px; height: 40px; }
    .itm-footer__social__link svg { width: 20px; height: 20px; }
    .itm-footer__apps__badges { flex-direction: row; gap: 8px; }
    .itm-footer__apps__badge { display: block; flex: 1 1 0; min-width: 0; overflow: hidden; }
    .itm-footer__apps__badge svg { display: block; width: 100%; height: auto; max-width: 144px; }
    .itm-footer__legal__inner { padding: 28px 32px; gap: 34px; flex-direction: column; align-items: flex-start; }
    .itm-footer__legal__links { flex-direction: column; gap: 16px; }
    .itm-footer__legal__links a,
    .itm-footer__legal__copyright { font-size: 14px; }
}

/* ============================================================
   Shared/_Header
   ============================================================ */
.itm-header { background: var(--itm-black); color: var(--itm-white); font-family: var(--itm-font-body); }
.itm-header * { box-sizing: border-box; }
.itm-header__inner { max-width: var(--itm-content-max); margin: 0 auto; padding: 0 var(--itm-space-md); width: 100%; }
/* Removed override that was breaking the .itm-header__inner cap. The band-with-capped-inner pattern (full-bleed background on .itm-header__topbar, centred content on .itm-header__topbar__inner) requires max-width to apply. */
.itm-header .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; }
.itm-header__topbar { background: var(--itm-dark-grey, #333333); font-size: 16px; position: relative; }
.itm-header__topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 40px; }
.itm-header__topbar__left { display: flex; align-items: center; gap: 20px; }
.itm-header__welcome {
    color: var(--itm-white); font-family: var(--itm-font-body);
    font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -0.32px;
}
/* Logo link: flex row so branch name + ITM logo sit on one line */
.itm-header__logo {
    display: inline-flex; align-items: center; gap: 10px; line-height: 0; flex-wrap: nowrap;
}
/* When a branch is active, font-size on the link sets the shared em context */
.itm-header__logo--has-branch {
    font-size: clamp(26px, 3.2vw, 46px);
}
/* Logo SVG scales to match branch name height (117:62 = 1.887 aspect ratio) */
.itm-header__logo--has-branch .itm-header__logo__svg {
    height: 1em; width: 1.887em;
}
.itm-header__branch-name {
    font-family: 'Eurostile-CondensedBold', 'Arial Narrow', Arial, sans-serif;
    font-size: 1em; font-weight: 700; line-height: 1.1;
    color: #FFF200; text-transform: uppercase;
    letter-spacing: -0.96px; white-space: nowrap;
}
/* Long store names (>20 chars): 2-line split via JS <br>, smaller font, full-size logo — matches Figma */
.itm-header__logo--long-branch {
    font-size: clamp(20px, 2.2vw, 32px);
    gap: 10px;
}
.itm-header__logo--long-branch .itm-header__branch-name {
    white-space: normal;
}
.itm-header__logo--long-branch .itm-header__logo__svg {
    height: 62px; width: 117px;
}
.itm-header__branch-name[hidden] { display: none; }
.itm-header__store-pill {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; padding: 4px 12px; background: transparent; color: var(--itm-white);
    border: 0.5px solid #fff; border-radius: 6px;
    font: 500 16px/1.4 var(--itm-font-body); cursor: pointer;
    letter-spacing: -0.32px; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.itm-header__store-pill:hover { background: var(--itm-yellow); border-color: var(--itm-yellow); color: var(--itm-black); }
.itm-header__store-pill--active {
    border-color: transparent; background: transparent; padding-left: 0; padding-right: 0; font-weight: 400;
}
.itm-header__store-pill--active:hover { background: transparent; border-color: transparent; color: var(--itm-white); }
.itm-header__store-change[hidden] { display: none; }
.itm-header__store-change {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border: 0.5px solid rgba(255,255,255,0.6); border-radius: 6px;
    background: transparent; cursor: pointer;
    color: var(--itm-white); font-family: var(--itm-font-body); font-size: 14px; font-weight: 500;
    letter-spacing: -0.28px; text-decoration: none; white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.itm-header__store-change:hover { background: var(--itm-yellow); border-color: var(--itm-yellow); color: var(--itm-black); }
.itm-header__store-caret { display: inline-block; vertical-align: middle; margin-left: -4px; width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; }
.itm-header__store-pill--panel-open .itm-header__store-caret { transform: rotate(180deg); }

/* Go-to store dropdown panel */
.itm-header__topbar__left { position: relative; }
.itm-store-panel {
    position: absolute; top: calc(100% + 8px); left: 0;
    width: 340px; max-width: calc(100vw - 80px); background: #333333;
    border-bottom: 5px solid var(--itm-yellow);
    z-index: 500; padding: 16px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    box-sizing: border-box;
    display: flex; flex-direction: column; gap: 20px;
}
.itm-store-panel[hidden] { display: none; }
.itm-store-panel__name {
    display: block; font-family: var(--itm-font-body); font-size: 16px;
    font-weight: 700; color: var(--itm-white); letter-spacing: -0.32px; margin: 0;
}
.itm-store-panel__body { display: flex; flex-direction: column; gap: 20px; padding-bottom: 16px; }
.itm-store-panel__contact { display: flex; flex-direction: column; gap: 20px; }
.itm-store-panel__address-row { display: flex; gap: 10px; align-items: flex-start; }
.itm-store-panel__icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--itm-white); }
.itm-store-panel__address {
    font-family: Helvetica, Arial, sans-serif; font-size: 16px; color: var(--itm-white);
    margin: 0; line-height: 1.4; letter-spacing: -0.32px; white-space: pre-line;
}
.itm-store-panel__hour-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid #ccc;
    font-family: var(--itm-font-body); font-size: 16px; color: var(--itm-white);
}
.itm-store-panel__phone {
    display: flex; align-items: flex-start; gap: 10px;
    font-family: var(--itm-font-body); font-size: 16px; font-weight: 700; color: var(--itm-white);
}
.itm-store-panel__phone[hidden] { display: none; }
.itm-store-panel__services { display: flex; flex-direction: column; gap: 4px; }
.itm-store-panel__services[hidden] { display: none; }
.itm-store-panel__service {
    font-family: var(--itm-font-body); font-size: 13px; font-weight: 500;
    color: var(--itm-white); text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.6;
}
.itm-store-panel__details-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 48px; background: var(--itm-yellow);
    color: var(--itm-black); font-family: var(--itm-font-body); font-size: 16px;
    font-weight: 700; letter-spacing: -0.08px; text-transform: uppercase;
    text-decoration: none; box-sizing: border-box; border-radius: 8px;
    transition: opacity 0.15s;
}
.itm-store-panel__details-btn:hover { opacity: 0.88; }

/* ── Store Search Dropdown — Figma node 1534:12030 ── */
/* Popover panel — Figma width, positioned below the Choose a store button */
.itm-store-search-dropdown {
    position: fixed; left: 0; top: 0;
    width: 380px; max-width: calc(100vw - 32px);
    background: #333; border-bottom: 5px solid var(--itm-yellow);
    z-index: 600; border-radius: 0 4px 4px 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.itm-store-search-dropdown[hidden] { display: none; }

/* Inner: Figma — display:flex; padding:32px; align-items:center; gap:8px */
.itm-store-search-dropdown__inner {
    display: flex; align-items: center; gap: 8px;
    padding: 20px; box-sizing: border-box;
}

/* White field container (Figma "fields/general"): input + icons inside, flex:1, h:44px, rounded */
.itm-store-search-dropdown__field {
    display: flex; align-items: center; flex: 1;
    background: #fff; border-radius: 8px; height: 44px;
    padding-right: 8px;
}

/* Input — no bg, no outline/border on any state */
.itm-store-search-dropdown__input {
    flex: 1; height: 100%; border: none !important; outline: none !important;
    box-shadow: none !important; background: transparent;
    font-family: var(--itm-font-body); font-size: 16px;
    color: #333; padding: 0 12px; letter-spacing: -0.32px;
}
.itm-store-search-dropdown__input:hover,
.itm-store-search-dropdown__input:focus,
.itm-store-search-dropdown__input:active,
.itm-store-search-dropdown__input:focus-visible {
    outline: none !important; box-shadow: none !important;
    border: none !important; border-color: transparent !important;
}
.itm-store-search-dropdown__input::placeholder { color: #999; }

/* Field container — no outline/border/shadow on any state */
.itm-store-search-dropdown__field,
.itm-store-search-dropdown__field:hover,
.itm-store-search-dropdown__field:focus-within,
.itm-store-search-dropdown__field:focus {
    outline: none !important; box-shadow: none !important;
    border: none !important; border-color: transparent !important;
}

/* Icon buttons — INSIDE white box, dark icons on white */
.itm-store-search-dropdown__icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer;
    color: #555; width: 36px; height: 36px;
    flex-shrink: 0; border-radius: 4px; padding: 0;
}
.itm-store-search-dropdown__icon-btn:hover { color: #111; }
.itm-store-search-dropdown__results {
    margin-top: 12px; background: #fff; border-radius: 8px;
    overflow: hidden; max-height: 320px; overflow-y: auto;
}
.itm-store-search-dropdown__results[hidden] { display: none; }
.itm-store-search-result {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; cursor: pointer; border-bottom: 1px solid #f0f0f0;
    gap: 12px; text-decoration: none; color: #333;
}
.itm-store-search-result:last-child { border-bottom: none; }
.itm-store-search-result:hover { background: #f9f9f9; }
.itm-store-search-result__name { font-family: var(--itm-font-body); font-size: 15px; font-weight: 700; color: #111; }
.itm-store-search-result__addr { font-family: var(--itm-font-body); font-size: 13px; color: #666; margin-top: 2px; }
.itm-store-search-result__arrow { color: #999; flex-shrink: 0; }
.itm-store-search-dropdown__status {
    padding: 12px 16px; font-family: var(--itm-font-body); font-size: 14px; color: #666;
    text-align: center;
}

.itm-header__topbar__right { display: flex; align-items: center; gap: 16px; }
.itm-header__util-link { display: inline-flex; align-items: center; gap: 4px; color: var(--itm-white); text-decoration: none; font-family: var(--itm-font-body); font-size: 16px; font-weight: 400; letter-spacing: -0.08px; white-space: nowrap; padding: 4px; border-bottom: 2px solid transparent; transition: border-color 0.15s; }
.itm-header__util-link:hover { border-bottom-color: var(--itm-yellow); }
.itm-header__util-link--arrow { font-weight: 700; gap: 6px; }
.itm-header__util-arrow { flex: 0 0 auto; transition: transform 0.2s ease; }
.itm-header__util-link--arrow:hover .itm-header__util-arrow { transform: rotate(90deg); }

/* Staff & Supplier Access dropdown */
.itm-header__staff-dropdown { position: relative; }
.itm-header__staff-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; color: var(--itm-white); font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: -0.08px; white-space: nowrap; padding: 4px; transition: border-color 0.15s; }
.itm-header__staff-btn:hover { border-bottom-color: var(--itm-yellow); }
.itm-header__staff-chevron { flex: 0 0 auto; transform: rotate(180deg); transition: transform 0.2s ease; }
.itm-header__staff-btn[aria-expanded="true"] .itm-header__staff-chevron { transform: rotate(0deg); }
.itm-header__staff-panel { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--itm-dark-grey); border-bottom: 5px solid var(--itm-yellow); padding: 8px 32px 24px; z-index: 50; min-width: 280px; }
.itm-header__staff-panel.is-open { display: block; }
.itm-header__staff-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 4px; text-decoration: none; width: 100%; min-height: 44px; }
.itm-header__staff-item__name { display: inline-flex; align-items: center; gap: 4px; color: var(--itm-white); font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -0.08px; white-space: nowrap; }
.itm-header__staff-item:hover .itm-header__staff-item__name { color: var(--itm-yellow); }
.itm-header__staff-item__label { color: var(--itm-white); font-family: var(--itm-font-body); font-size: 12px; font-weight: 300; font-style: italic; letter-spacing: -0.24px; white-space: nowrap; }

.itm-header__main { background: var(--itm-black); position: relative; }
.itm-header__main__inner {
    max-width: var(--itm-content-max); margin: 0 auto;
    display: flex; align-items: center; gap: 20px;
    min-height: 99px; padding: 16px 40px;
    justify-content: space-between;
}
.itm-header__logo { flex: 0 0 auto; line-height: 0; }
.itm-header__logo__svg { display: block; width: 117px; height: 62px; }
.itm-header__search {
    display: flex; align-items: center; gap: 12px;
    flex: 1 0 0; height: 44px; border-radius: 8px;
    background: #fff; position: relative; max-width: 496px;
}
.itm-header__search__input {
    flex: 1; border: 0; outline: 0; background: transparent; box-shadow: none;
    padding: 0 0 0 18px; font: 400 16px/1.4 var(--itm-font-body); color: var(--itm-dark-grey);
    letter-spacing: -0.32px; min-width: 0;
}
.itm-header__search__input::placeholder { color: var(--itm-mid-grey); }
.itm-header .itm-header__search__input:hover,
.itm-header .itm-header__search__input:focus { border: 0 !important; outline: 0 !important; box-shadow: none !important; }
.itm-header .itm-header__search:hover,
.itm-header .itm-header__search:focus-within { outline: none !important; border: none !important; box-shadow: none !important; }
.itm-header__search__submit {
    display: flex; width: 40px; justify-content: center; align-items: center;
    align-self: stretch; background: transparent; color: var(--itm-dark-grey);
    border: 0; cursor: pointer; flex: 0 0 auto; padding: 0 8px;
}
.itm-header__search__submit:hover { color: var(--itm-black); }
.itm-header__search__submit svg { width: 20px; height: 20px; }
.itm-header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 50px; flex: 0 0 auto; }
.itm-header__action { display: inline-flex; align-items: center; gap: 10px; color: var(--itm-white); text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -0.08px; white-space: nowrap; }
.itm-header__action__icon { width: 24px; height: 24px; flex: 0 0 auto; }
.itm-header__action__label { border-bottom: 2px solid transparent; transition: border-color 0.15s; padding-bottom: 2px; }
.itm-header__action:hover .itm-header__action__label { border-bottom-color: var(--itm-yellow); }
.itm-header__burger { display: none; background: transparent; border: 0; cursor: pointer; padding: 6px; flex-direction: column; gap: 4px; }
.itm-header__burger span { display: block; width: 22px; height: 2px; background: var(--itm-white); transition: transform 0.25s ease, opacity 0.25s ease; }
/* gap:4px → centre offset = (2+4)/2 = 6px */
.itm-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.itm-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.itm-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.itm-header__mob-bar { display: none; }
.itm-header__nav { background: var(--itm-black); }
.itm-header__nav--sticky { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.itm-header__nav-sentinel { height: 0; pointer-events: none; }
.itm-header__nav__inner { max-width: var(--itm-content-max); margin: 0 auto; padding: 0 40px; }
.itm-header__nav__list {
    display: flex; align-items: flex-start; align-self: stretch; justify-content: space-between; list-style: none; margin: 0; padding: 0; gap: 0;
}
.itm-header__nav__item { position: relative; margin: 0; padding: 0; }
.itm-header__nav__icon { display: none; }
.itm-header__nav__link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 20px 4px; height: 53px; color: var(--itm-white); text-decoration: none;
    font-family: Helvetica, Arial, sans-serif; font-weight: 700; font-size: 16px;
    letter-spacing: -0.08px; white-space: nowrap;
}
.itm-header__nav__caret { width: 12px; height: 12px; flex: 0 0 auto; transition: transform 0.15s ease; }
.itm-header__nav__link:hover,
.itm-header__nav__item:hover > .itm-header__nav__link,
.itm-header__nav__item:focus-within > .itm-header__nav__link { color: var(--itm-mid-grey); }
.itm-header__nav__link:active,
.itm-header__nav__item:active > .itm-header__nav__link { color: var(--itm-yellow); }
.itm-header__nav__item.has-dropdown:hover .itm-header__nav__caret,
.itm-header__nav__item.has-dropdown:focus-within .itm-header__nav__caret { transform: rotate(180deg); }
.itm-header__dropdown {
    position: absolute; top: 100%; left: 0; width: 320px;
    background: var(--itm-white); color: #111;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18); border-radius: 0 0 6px 6px;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    z-index: 30; padding: 0 0 32px;
    /* Collapse to zero height when hidden — an abs-pos panel with visibility:hidden
       still contributes to document scrollHeight on desktop, creating whitespace
       below the footer on short pages. max-height:0 + overflow:hidden fixes this.
       Delay the collapse until AFTER the 0.15s fade-out so the exit animation plays. */
    max-height: 0; overflow: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s,
                max-height 0s 0.15s, overflow 0s 0.15s;
}
.itm-header__nav__item:hover > .itm-header__dropdown,
.itm-header__nav__item:focus-within > .itm-header__dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
    max-height: 1000px; overflow: visible;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s, max-height 0s, overflow 0s;
}
.itm-header__dropdown ul { list-style: none; margin: 0; padding: 0; }
/* Legacy main.css sets ul>li { margin:0 0 12px; padding:0 0 0 5px } which breaks
   item height (56px → 68px) and left-padding alignment. Override here. */
.itm-header__dropdown > ul > li,
.itm-header__flyout > li { margin: 0 !important; padding: 0 !important; }
/* Border lives on a ::after pseudo inside the <a> so it is inset by the 32px
   horizontal padding — matching Figma node 1534:11834 exactly. */
.itm-header__dropdown > ul > li { border-bottom: none; }
.itm-header__dropdown a {
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; padding: 0 32px;
    color: #111; text-decoration: none; font-size: 16px; font-weight: 400;
    font-family: var(--itm-font-body);
    position: relative; box-sizing: border-box; width: 100%;
}
.itm-header__dropdown a::after {
    content: ''; position: absolute; bottom: 0; left: 32px; right: 32px;
    height: 1px; background: #ccc;
}
.itm-header__dropdown a:hover { background: var(--itm-bone-white); color: var(--itm-black); }

/* ── Flyout (second-level subcategory panel) ── */
.itm-header__dropdown > ul > li { position: static; }
.itm-header__dropdown > ul > li.has-flyout { position: relative; }
.itm-header__dropdown > ul > li.has-flyout > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.itm-header__flyout-caret { flex-shrink: 0; color: rgba(0,0,0,0.35); }
.itm-header__flyout {
    position: absolute; left: 100%; top: 0;
    width: 320px; list-style: none; margin: 0; padding: 0 0 32px;
    background: var(--itm-white); color: #111;
    box-shadow: 8px 8px 24px rgba(0,0,0,0.14);
    border-radius: 0 0 6px 6px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s;
    z-index: 31;
}
/* When JS detects the main dropdown would overflow the right edge, anchor it to
   the nav item's right edge so it opens leftward and stays on-screen. */
.itm-header__nav__item.dropdown-flip-right > .itm-header__dropdown {
    left: auto; right: 0;
}

/* When JS detects right-edge overflow, flip flyout to open LEFT instead */
.itm-header__dropdown > ul > li.flyout-flip-left > .itm-header__flyout {
    left: auto; right: 100%;
    box-shadow: -8px 8px 24px rgba(0,0,0,0.14);
}
.itm-header__dropdown > ul > li.flyout-flip-left > a .itm-header__flyout-caret {
    transform: rotate(180deg);
}
/* Flyout items: same height/padding as category items, border via ::after (inset) */
.itm-header__flyout > li { border-bottom: none; display: block; }
.itm-header__flyout a {
    display: flex !important; align-items: center !important;
    height: 56px !important; padding: 0 32px !important;
    color: #111 !important; text-decoration: none;
    font-size: 16px !important; font-weight: 400 !important;
    font-family: var(--itm-font-body) !important;
    position: relative; box-sizing: border-box; width: 100%;
    justify-content: flex-start !important;
}
.itm-header__flyout a::after {
    content: ''; position: absolute; bottom: 0; left: 32px; right: 32px;
    height: 1px; background: #ccc;
}
.itm-header__flyout a:hover { background: var(--itm-bone-white) !important; color: var(--itm-black) !important; }
.itm-header__dropdown > ul > li.has-flyout:hover > .itm-header__flyout,
.itm-header__dropdown > ul > li.has-flyout:focus-within > .itm-header__flyout { opacity: 1; visibility: visible; }

/* ── Sub-flyout (3rd level: e.g. Timber → Framing Timber → Red Stag) ── */
.itm-header__flyout > li.has-subflyout { position: relative; }
.itm-header__flyout > li.has-subflyout > a { display: flex !important; align-items: center !important; justify-content: space-between !important; }
.itm-header__subflyout {
    position: absolute; left: 100%; top: 0;
    width: 280px; list-style: none; margin: 0; padding: 0 0 32px;
    background: var(--itm-white); color: #111;
    box-shadow: 8px 8px 24px rgba(0,0,0,0.14);
    border-radius: 0 0 6px 6px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s;
    z-index: 32;
}
.itm-header__flyout > li.has-subflyout:hover > .itm-header__subflyout,
.itm-header__flyout > li.has-subflyout:focus-within > .itm-header__subflyout { opacity: 1; visibility: visible; }
.itm-header__subflyout li { display: block; }
.itm-header__subflyout a {
    display: flex !important; align-items: center !important;
    height: 56px !important; padding: 0 32px !important;
    color: #111 !important; text-decoration: none;
    font-size: 16px !important; font-weight: 400 !important;
    font-family: var(--itm-font-body) !important;
    position: relative; box-sizing: border-box; width: 100%;
}
.itm-header__subflyout a::after {
    content: ''; position: absolute; bottom: 0; left: 32px; right: 32px;
    height: 1px; background: #ccc;
}
.itm-header__subflyout a:hover { background: var(--itm-bone-white) !important; color: var(--itm-black) !important; }
.itm-header__mob-nav-topbar,
.itm-header__mob-nav-ctas,
.itm-header__mob-nav-utils { display: none; }
.itm-header__cvp { background: var(--itm-bg-cvp-bar); color: var(--itm-black); }
.itm-header__cvp__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--itm-space-md); min-height: 50px; padding: 8px 40px;
}
.itm-header__cvp__item {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: Helvetica, Arial, sans-serif; font-weight: 700; font-size: 16px;
    letter-spacing: var(--itm-tracking-normal); color: var(--itm-black);
}
.itm-header__cvp__icon { width: 22px; height: 22px; color: var(--itm-black); flex: 0 0 auto; }
@media (max-width: 1080px) {
    .itm-header__search { max-width: 320px; }
    .itm-header__action__label { display: none; }
    .itm-header__cvp__item { font-size: 14px; }
    .itm-header__nav__list { gap: 0; }
    .itm-header__nav__link { font-size: 15px; }
    .itm-header__nav__inner { padding: 0 24px; }
}
@media (max-width: 900px) {
    .itm-header__topbar__left .itm-header__welcome { display: none; }
    .itm-header__burger { display: inline-flex; }
    .itm-header__nav {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 25;
        background: var(--itm-black); border-top: 1px solid rgba(255,255,255,0.1);
        max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    }
    .itm-header__nav.is-open { max-height: 80vh; overflow-y: auto; }
    .itm-header__nav__list { flex-direction: column; gap: 0; }
    .itm-header__nav__item { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .itm-header__nav__link { width: 100%; padding: 14px var(--itm-space-md); }
    .itm-header__dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; background: rgba(255,255,255,0.04); color: var(--itm-white);
        border-radius: 0; padding: 0;
    }
    .itm-header__dropdown a { color: var(--itm-white); padding-left: 36px; }
    .itm-header__dropdown a:hover { background: rgba(255,255,255,0.08); color: var(--itm-yellow); }
    .itm-header__flyout { position: static; opacity: 1; visibility: visible; box-shadow: none; background: transparent; padding: 0; }
    .itm-header__flyout a { padding-left: 52px !important; font-size: 13px !important; color: rgba(255,255,255,0.7) !important; height: 44px !important; }
    .itm-header__flyout a:hover { color: var(--itm-yellow) !important; background: rgba(255,255,255,0.08) !important; }
    .itm-header__flyout-caret { display: none; }
    /* Remove inset dividers in mobile accordion — dark bg makes them look wrong */
    .itm-header__dropdown a::after,
    .itm-header__flyout a::after { display: none; }
    .itm-header__cvp__inner { padding: 8px var(--itm-space-md); gap: 12px; }
}
@media (max-width: 768px) {
    .itm-header__topbar { display: none; }
    .itm-store-search-dropdown { left: 0 !important; width: 100% !important; max-width: 100% !important; border-radius: 0 0 4px 4px; }
    .itm-store-search-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 599; }
    .itm-store-search-backdrop[hidden] { display: none; }
    .itm-header__main__inner {
        flex-wrap: wrap; height: auto;
        padding: 10px 32px 0; gap: 0; align-items: center;
    }
    .itm-header__logo { order: 1; flex: 1 0 auto; }
    .itm-header__logo__svg { width: 80px; height: 42px; }
    .itm-header__logo--long-branch .itm-header__logo__svg { width: 78px; height: 48px; }
    .itm-header__logo--long-branch { font-size: clamp(16px, 4.5vw, 22px); }
    .itm-header__search { display: none; order: 5; }
    .itm-header__search.is-open {
        display: flex; order: 5; flex-basis: 100%;
        max-width: 100%; margin: 0 0 12px; border-radius: 8px; height: 44px;
        background: rgba(255,255,255,0.12); border: none; outline: none;
    }
    .itm-header__search.is-open:focus-within { outline: none; box-shadow: none; }
    .itm-header__search.is-open .itm-header__search__input {
        color: var(--itm-white); background: transparent;
    }
    .itm-header__search.is-open .itm-header__search__input::placeholder { color: rgba(255,255,255,0.45); }
    .itm-header__search.is-open .itm-header__search__submit { color: var(--itm-yellow); }
    .itm-header__actions { order: 2; gap: 0; }
    .itm-header__action--contact { display: none; }
    .itm-header__action--find { display: inline-flex; font-size: 14px; font-weight: 700; }
    .itm-header__action--find .itm-header__action__label { display: inline; }
    .itm-header__burger { display: none; }
    .itm-header__mob-bar {
        display: flex; flex-basis: 100%; order: 3;
        justify-content: space-between; align-items: center;
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.12); margin-top: 0;
    }
    .itm-header__mob-burger {
        display: inline-flex; flex-direction: column; gap: 5px;
        background: transparent; border: 0; cursor: pointer; padding: 4px;
    }
    .itm-header__mob-burger span { background: var(--itm-yellow); width: 24px; height: 2px; border-radius: 1px; transition: transform 0.25s ease, opacity 0.25s ease; }
    /* gap:5px → centre offset = (2+5)/2 = 3.5px, span height = 2px, so top-span centre to mid-span centre = 7px */
    .itm-header__mob-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .itm-header__mob-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .itm-header__mob-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .itm-header__mob-search-btn {
        background: transparent; border: 0; cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
        padding: 4px; color: var(--itm-yellow);
    }
    .itm-header__cvp__inner {
        overflow-x: auto; flex-wrap: nowrap;
        flex-direction: row; align-items: center; gap: 0;
        scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; justify-content: flex-start;
        padding: 0; min-height: 48px;
    }
    .itm-header__cvp__inner::-webkit-scrollbar { display: none; }
    .itm-header__cvp__item {
        display: inline-flex; flex: 0 0 100%;
        scroll-snap-align: center; justify-content: center; align-items: center;
        padding: 10px 16px; font-size: 14px;
    }
    .itm-header__nav {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 25;
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
        background: var(--itm-black); border-top: none;
    }
    .itm-header__nav.is-open { max-height: 100vh; overflow-y: auto; }
    .itm-header__mob-nav-topbar {
        display: flex; align-items: center; justify-content: space-between;
        background: var(--itm-dark-grey); padding: 12px 16px; gap: 12px;
    }
    .itm-header__mob-nav-welcome { color: var(--itm-white); font-size: 15px; font-weight: 500; }
    .itm-header__mob-nav-topbar .itm-header__store-pill { font-size: 14px; padding: 5px 12px; }
    .itm-header__mob-nav-topbar.has-mob-store .itm-header__store-pill { display: none !important; }
    .itm-header__mob-nav-topbar.has-mob-store .itm-header__store-change { display: none !important; }
    .itm-header__mob-store-block { display: none; flex-direction: column; align-items: flex-start; gap: 10px; }
    .itm-header__mob-store-block:not([hidden]) { display: flex; }
    .itm-header__mob-store-link {
        color: var(--itm-white); text-decoration: none; font-size: 15px; font-weight: 400;
        line-height: 1.4; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
    }
    .itm-header__mob-store-link strong { font-weight: 700; }
    .itm-header__mob-store-link svg { flex-shrink: 0; }
    .itm-header__mob-change-store {
        color: var(--itm-white); text-decoration: none; font-size: 14px; font-weight: 500;
        border: 1px solid rgba(255,255,255,0.6); border-radius: 6px; padding: 5px 14px;
        background: transparent; cursor: pointer;
        display: inline-block; transition: background 0.15s, border-color 0.15s;
    }
    .itm-header__mob-change-store:hover { background: rgba(255,255,255,0.1); border-color: var(--itm-white); }
    .itm-store-panel { display: none !important; }
    .itm-header__nav__inner { background: #fff; padding: 0; height: fit-content; }
    .itm-header__nav__list { display: block; }
    .itm-header__nav__item { width: 100%; border-bottom: 1px solid #e8e8e8; }
    .itm-header__nav__link {
        display: flex; align-items: center; gap: 16px;
        padding: 16px; color: var(--itm-black); height: auto;
        font-size: 17px; font-weight: 700; white-space: normal;
    }
    .itm-header__nav__link:hover,
    .itm-header__nav__item:hover > .itm-header__nav__link { background: #f5f5f5; color: var(--itm-black); }
    /* No yellow on tap/active at mobile */
    .itm-header__nav__link:active,
    .itm-header__nav__item:active > .itm-header__nav__link { color: var(--itm-black); }
    .itm-header__nav__icon {
        display: flex; align-items: center; justify-content: center;
        width: 28px; height: 28px; flex: 0 0 28px; color: var(--itm-black);
    }
    /* Hide original V-path caret — replace with thin > matching Figma (mobile only) */
    .itm-header__nav__caret { display: none !important; }
    .itm-header__nav__link::after {
        content: ''; display: block; flex-shrink: 0; margin-left: auto;
        width: 7px; height: 12px;
        background: url("data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5-5 5' stroke='%23aaaaaa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    }
    .itm-header__dropdown { display: none; }
    .itm-header__mob-nav-ctas {
        display: flex; flex-direction: column; background: var(--itm-black);
    }
    .itm-header__mob-nav-cta {
        display: flex; align-items: center; gap: 16px;
        padding: 18px 16px; color: var(--itm-white); text-decoration: none;
        font-weight: 700; font-size: 16px; font-family: Helvetica, Arial, sans-serif;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .itm-header__mob-nav-cta:hover { color: var(--itm-yellow); }
    .itm-header__mob-nav-utils {
        display: block; background: var(--itm-dark-grey); padding: 4px 0;
        border-bottom: 5px solid var(--itm-yellow);
    }
    .itm-header__mob-nav-util {
        display: flex; align-items: center; justify-content: space-between;
        padding: 14px 16px; color: var(--itm-white); text-decoration: none;
        font-size: 15px; font-weight: 700;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .itm-header__mob-nav-util:hover { color: var(--itm-yellow); }
    .itm-header__mob-nav-util em { font-style: italic; font-weight: 400; font-size: 13px; opacity: 0.6; }
    .itm-header__mob-nav-util span { display: flex; align-items: center; gap: 4px; }

    /* ── Issue 11: Mobile slide-panel navigation ── */
    /* overflow: hidden clips panels that are off-screen to the right.
       No transform on nav__list — transforms create a new containing block which
       would break position: absolute on child panels. Panels slide on top instead. */
    .itm-header__nav__inner { position: relative; overflow: hidden; }
    .itm-header__nav__item { position: static; }
    /* Level-1 dropdown as slide panel */
    .itm-header__dropdown {
        display: block !important;
        position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important;
        transform: translateX(100%) !important; transition: transform 0.3s ease !important;
        opacity: 1 !important; visibility: visible !important;
        max-height: none !important; overflow: visible !important;
        background: #fff !important; color: var(--itm-black) !important;
        box-shadow: none !important; border-radius: 0 !important; padding: 0 !important;
        z-index: 5;
    }
    .itm-header__nav__item.mob-panel-open > .itm-header__dropdown { transform: translateX(0) !important; }
    /* Level-2 flyout as slide panel inside dropdown */
    .itm-header__dropdown > ul > li.has-flyout { position: static; }
    .itm-header__flyout {
        display: block !important;
        position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important;
        transform: translateX(100%) !important; transition: transform 0.3s ease !important;
        opacity: 1 !important; visibility: visible !important;
        background: #fff !important; box-shadow: none !important; padding: 0 !important;
        z-index: 6; list-style: none; margin: 0;
    }
    .has-flyout.mob-panel-open > .itm-header__flyout { transform: translateX(0) !important; }
    /* Level-3 subflyout as slide panel inside flyout */
    .itm-header__flyout > li.has-subflyout { position: static; }
    .itm-header__subflyout {
        display: block !important;
        position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important;
        transform: translateX(100%) !important; transition: transform 0.3s ease !important;
        opacity: 1 !important; visibility: visible !important;
        background: #fff !important; box-shadow: none !important; padding: 0 !important;
        z-index: 7; list-style: none; margin: 0;
    }
    .has-subflyout.mob-panel-open > .itm-header__subflyout { transform: translateX(0) !important; }
    /* Back button — border inset 32px each side to match Figma */
    .itm-mob-back {
        display: flex; align-items: center; gap: 8px;
        width: 100%; height: 56px; padding: 0 32px; margin: 0;
        border: 0; position: relative;
        background: none; cursor: pointer;
        font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 700;
        color: var(--itm-black); text-align: left; box-sizing: border-box;
    }
    .itm-mob-back::after {
        content: ''; position: absolute; bottom: 0; left: 32px; right: 32px; height: 1px; background: #ccc;
    }
    /* Link styles within slide panels */
    .itm-header__dropdown > ul > li > a,
    .itm-header__flyout > li > a,
    .itm-header__subflyout > li > a {
        display: flex !important; align-items: center !important; justify-content: space-between !important;
        height: 56px !important; padding: 0 32px !important;
        color: #111 !important;
        font-size: 16px !important; font-weight: 400 !important;
        font-family: Helvetica, Arial, sans-serif !important;
        border-bottom: none !important;
        background: transparent !important; text-decoration: none !important;
        position: relative !important; box-sizing: border-box; width: 100%;
    }
    /* Inset separator line via ::before (::after is used/suppressed by desktop rules) */
    .itm-header__dropdown > ul > li > a::before,
    .itm-header__flyout > li > a::before,
    .itm-header__subflyout > li > a::before {
        content: ''; position: absolute; bottom: 0; left: 32px; right: 32px; height: 1px; background: #ccc;
    }
    .itm-header__dropdown > ul > li > a:hover,
    .itm-header__flyout > li > a:hover,
    .itm-header__subflyout > li > a:hover { background: #f5f5f5 !important; }
    /* Hide desktop pseudo-element dividers */
    .itm-header__dropdown a::after,
    .itm-header__flyout a::after,
    .itm-header__subflyout a::after { display: none !important; }
    /* Show right-pointing caret on items that open sub-panels */
    .itm-header__flyout-caret { display: block !important; color: #aaa; flex-shrink: 0; }
    /* flyout-flip-left is added by desktop edge-detection JS which fires on touch — neutralise it at mobile */
    .itm-header__dropdown > ul > li.flyout-flip-left > a .itm-header__flyout-caret { transform: none !important; }
}

/* ================================================================
   Store Detail Page  (StoreDetailPage.cshtml — Figma 1812:19908)
   Prefix: sd-  (store detail)
   ================================================================ */

/* Title band — dark background, white text (matches site pcp-hero pattern) */
.sd-hero { background: var(--itm-black); padding: 52px 0 44px; }
.sd-hero__inner { max-width: var(--itm-content-max); margin: 0 auto; padding: 0 var(--itm-layout-gutter); }
.sd-hero__heading { margin: 0; font-family: 'Eurostile-CondensedBold', 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-size: 80px; line-height: 1; text-transform: uppercase; letter-spacing: -2px; color: var(--itm-white); }
.sd-hero__heading--solid { color: var(--itm-yellow); }
.sd-hero__heading--outline { color: transparent; -webkit-text-stroke: 2px var(--itm-white); }
.sd-hero__heading--solid + .sd-hero__heading--outline,
.sd-hero__heading--outline + .sd-hero__heading--solid { margin-left: 0.2em; }
.sd-hero__description { margin: 20px 0 0; font-family: var(--itm-font-body); font-size: 16px; line-height: 1.5; color: rgba(255,255,255,0.85); max-width: 65ch; }

/* Outer section — black bg creates the border visible around the #333 inner panel */
.sd-panel { background: var(--itm-black); padding: 64px 40px; }
/* Inner #333 panel — flex row: map left, details right */
.sd-panel__inner { background: var(--itm-dark-grey); max-width: calc(var(--itm-content-max) - 80px); margin: 0 auto; display: flex; align-items: flex-start; }

/* Map column — left 50%, padded inside */
.sd-panel__map { flex: 0 0 50%; box-sizing: border-box; padding: 32px 0 32px 32px; }
.sd-panel__map__iframe { display: block; width: 100%; height: 700px; border: 0; }
.sd-panel__map__canvas { display: block; width: 100%; height: 700px; }
.sd-panel__map__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 700px; color: rgba(255,255,255,0.35); font-family: var(--itm-font-body); font-size: 14px; }

/* Details column — takes remaining space */
.sd-panel__details { flex: 1; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 32px; }

/* Go-to-store — outline/reverse: yellow border, no fill, white text */
.sd-btn-goto { align-self: flex-start; }

/* Section block */
.sd-section { display: flex; flex-direction: column; gap: 24px; }
/* Figma H4: Inter Black 28px */
.sd-section__heading { margin: 0; font-family: var(--itm-font-body); font-weight: 900; font-size: 28px; line-height: normal; color: var(--itm-white); text-transform: none; }

/* Addresses — side-by-side with gap-32 */
.sd-addresses { display: flex; gap: 32px; align-items: flex-start; }
.sd-address { display: flex; gap: 10px; align-items: flex-start; }
.sd-address__icon { width: 16px; height: 16px; flex: 0 0 16px; color: var(--itm-white); margin-top: 2px; }
.sd-address__text { font-family: var(--itm-font-body); font-size: 16px; font-weight: 400; line-height: normal; color: var(--itm-white); }

/* Phone */
.sd-phone { display: flex; align-items: flex-start; gap: 10px; }
.sd-phone__icon { width: 16px; height: 16px; flex: 0 0 16px; color: var(--itm-white); margin-top: 2px; }
.sd-phone__link { font-family: var(--itm-font-body); font-size: 16px; font-weight: 400; line-height: normal; color: var(--itm-white); text-decoration: none; }
.sd-phone__link:hover { color: var(--itm-yellow); }

/* Opening hours — #ccc separators per Figma */
.sd-hours { display: flex; flex-direction: column; width: 100%; }
.sd-hours__row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #ccc; font-family: var(--itm-font-body); font-size: 16px; font-weight: 400; line-height: normal; color: var(--itm-white); }
.sd-hours__day { color: var(--itm-white); }
.sd-hours__time { color: var(--itm-white); }

/* Action buttons — gap-16 between them */
.sd-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
/* Filled yellow (Email, Visit Website) */
.sd-btn-action { align-self: flex-start; }
/* Outline yellow (Get Directions) */

/* Services — gap-16 per Figma */
.sd-services { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.sd-services__item { display: flex; align-items: center; gap: 16px; font-family: var(--itm-font-body); font-size: 16px; color: var(--itm-white); }
.sd-services__icon { flex: 0 0 auto; color: var(--itm-white); }

/* Tablet — stack map above details */
@media (max-width: 1100px) {
    .sd-hero__heading { font-size: 60px; }
    .sd-panel { padding: 40px 40px; }
    .sd-panel__inner { flex-direction: column; }
    .sd-panel__map { flex: none; width: 100%; padding: 0; }
    .sd-panel__map__iframe { height: 420px; }
    .sd-panel__map__canvas { height: 420px; }
    .sd-panel__map__placeholder { height: 420px; }
}

/* Mobile */
@media (max-width: 768px) {
    .sd-hero { padding: 32px 0 28px; }
    .sd-hero__inner { padding: 0 32px; }
    .sd-hero__heading { font-size: 44px; letter-spacing: -1px; }
    .sd-hero__description { font-size: 15px; }
    .sd-panel { padding: 0; }
    .sd-panel__map__iframe { height: 280px; }
    .sd-panel__map__canvas { height: 280px; }
    .sd-panel__map__placeholder { height: 280px; }
    .sd-panel__details { padding: 24px 32px; gap: 24px; }
    .sd-addresses { flex-direction: column; gap: 16px; }
    .sd-section__heading { font-size: 22px; }
    .sd-btn-goto { font-size: 14px; width: 100%; align-self: stretch; justify-content: center; }
    .sd-actions { align-items: stretch; }
    .sd-btn-action { font-size: 14px; width: 100%; align-self: stretch; justify-content: center; }
    .sd-hours__row { font-size: 14px; }
    .sd-services__item { font-size: 14px; }
}

/* ─── Pagination Bar — Figma node 1880:22862 ─────────────────────────── */
.itm-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.itm-pagination__btn { display: flex; align-items: center; gap: 5px; padding: 6px; border-radius: 6px; font-family: var(--itm-font-display); font-size: 1rem; font-weight: 700; color: var(--itm-white); text-decoration: none; white-space: nowrap; transition: color 0.15s; }
.itm-pagination__btn:hover { color: var(--itm-yellow); }
.itm-pagination__btn--disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.itm-pagination__num { display: flex; align-items: center; justify-content: center; min-width: 31px; padding: 6px; border-radius: 6px; font-family: var(--itm-font-display); font-size: 1rem; font-weight: 700; color: var(--itm-white); text-decoration: none; text-align: center; transition: background 0.15s, color 0.15s; }
.itm-pagination__num:hover { background: rgba(255,255,255,0.1); }
.itm-pagination__num--active { background: var(--itm-yellow); color: var(--itm-black); }
.itm-pagination__ellipsis { padding: 6px; font-family: var(--itm-font-display); font-size: 1rem; font-weight: 700; color: var(--itm-white); }

/* ============================================================
   Pole Shed 3D Designer embed (WebShed)
   ============================================================ */
.block-script-embed:has(#shed-root) { position: relative; height: calc(100vh - 149px); }
#shed-root { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; overflow: hidden; transition: all 0.3s ease; min-height: initial; z-index: 1; }
@media (max-width: 768px) {
    .block-script-embed:has(#shed-root) { height: calc(100vh - 105px); }
}
