/* Selected Quote Corner: desktop-only presentation, with original actions intact. */
@media (min-width: 961px) {
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header:has(.header-actions > .phone-link[href^="tel:"]) {
    min-height: 112px;
    padding-right: 0;
    column-gap: clamp(18px, 1.8vw, 30px);
  }

  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .header-actions:has(> .phone-link[href^="tel:"]) {
    align-self: stretch;
    gap: clamp(20px, 2vw, 30px);
    margin-left: 10px;
  }

  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .phone-link[href^="tel:"],
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link[href^="tel:"] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    min-height: 52px;
    padding: 5px 0 5px 46px;
    border: 0;
    border-radius: 12px;
    color: #00215e !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300215e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.2 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.96.35 1.9.69 2.8a2 2 0 0 1-.45 2.11L8.09 9.9a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.84.57 2.8.69A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"), radial-gradient(circle at center, #e8f8fe 0 17px, transparent 18px) !important;
    background-repeat: no-repeat !important;
    background-size: 18px 18px, 36px 36px !important;
    background-position: 9px center, left center !important;
    box-shadow: none;
    font-size: 18px;
    line-height: 1.12;
    letter-spacing: 0;
    white-space: nowrap;
    text-decoration: none !important;
    transition: color 160ms ease;
  }

  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .phone-link[href^="tel:"] > span,
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link[href^="tel:"]::before {
    margin: 0 0 5px;
    color: #51627a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .header-actions:has(> .phone-link[href^="tel:"]) > a.button,
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link:is([href="#jims"], [href*="/booking/"]) {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 152px;
    box-sizing: border-box;
    width: 152px;
    min-height: 72px;
    height: 72px;
    align-self: center;
    padding: 14px 26px;
    border: 0;
    border-radius: 22px 0 0 22px;
    background: #00215e !important;
    color: #fff !important;
    box-shadow: inset 1px 0 0 #ffffff14;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: .015em;
    text-align: left;
    text-transform: uppercase;
    white-space: normal;
    text-decoration: none !important;
    transform: none;
    transition: background-color 160ms ease;
    overflow: hidden;
  }

  /* Keep the quote corner simple: no top stripe or decorative arrow. */
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .header-actions:has(> .phone-link[href^="tel:"]) > a.button::before,
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .header-actions:has(> .phone-link[href^="tel:"]) > a.button::after,
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link:is([href="#jims"], [href*="/booking/"])::before,
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link:is([href="#jims"], [href*="/booking/"])::after {
    content: none;
    display: none;
  }

  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .header-actions:has(> .phone-link[href^="tel:"]) > a.button:focus-visible,
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link:is([href="#jims"], [href*="/booking/"]):focus-visible {
    outline: 3px solid #00adef;
    outline-offset: -7px;
    box-shadow: none;
  }

  /* The retained WordPress header keeps its native menu, labels and link targets. */
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part > .wp-block-group {
    padding-block: 0 !important;
    padding-inline: 0 !important;
  }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part .wp-block-group.alignwide {
    max-width: none;
    min-height: 112px;
    padding-left: max(28px, calc((100vw - 1320px) / 2));
    padding-right: 0;
    gap: clamp(20px, 2vw, 32px);
  }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part nav.jims-glass-menu {
    flex: 1;
    align-self: stretch;
    min-width: 0;
  }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container-content {
    align-items: stretch;
    flex-wrap: nowrap;
    gap: clamp(20px, 2vw, 32px);
    min-height: 112px;
  }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__container {
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
  }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container-content > .wp-block-buttons {
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: clamp(20px, 2vw, 30px);
    margin: 0;
  }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part .wp-block-button:has(> a[href="#jims"]) {
    align-self: stretch;
    display: flex;
  }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part nav.jims-glass-menu a.wp-block-button__link[href^="tel:"]::before {
    content: "Call now";
  }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part nav.jims-glass-menu a.wp-block-button__link[href^="tel:"] > i {
    display: none;
  }
}

/* Desktop action feedback. Background-only expansion keeps text and layout fixed. */
@media (min-width: 961px) {
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .phone-link[href^="tel:"],
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link[href^="tel:"] {
    transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
  }

  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .phone-link[href^="tel:"]:is(:hover, :focus-visible),
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link[href^="tel:"]:is(:hover, :focus-visible) {
    background-color: #e9f8fe !important;
    box-shadow: 0 0 0 6px #e9f8fe;
    text-decoration: none !important;
  }

  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .phone-link[href^="tel:"]:focus-visible,
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link[href^="tel:"]:focus-visible {
    outline: 3px solid #00adef;
    outline-offset: 8px;
  }

  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .header-actions:has(> .phone-link[href^="tel:"]) > a.button,
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link:is([href="#jims"], [href*="/booking/"]) {
    --jg-quote-expand-block: 20px;
    background: transparent !important;
    box-shadow: none;
    isolation: isolate;
    overflow: visible;
    transition: none;
  }

  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .header-actions:has(> .phone-link[href^="tel:"]) > a.button::before,
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link:is([href="#jims"], [href*="/booking/"])::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: #00215e;
    box-shadow: inset 1px 0 0 #ffffff14;
    transition: inset 240ms cubic-bezier(.22, 1, .36, 1), border-radius 240ms cubic-bezier(.22, 1, .36, 1);
  }

  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .header-actions:has(> .phone-link[href^="tel:"]) > a.button:is(:hover, :focus-visible)::before,
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link:is([href="#jims"], [href*="/booking/"]):is(:hover, :focus-visible)::before {
    inset: calc(-1 * var(--jg-quote-expand-block)) 0 calc(-1 * var(--jg-quote-expand-block)) -8px;
    border-radius: 26px 0 0 26px;
  }
}

@media (min-width: 961px) and (max-width: 1280px) {
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .header-actions:has(> .phone-link[href^="tel:"]) > a.button,
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu a.wp-block-button__link:is([href="#jims"], [href*="/booking/"]) {
    --jg-quote-expand-block: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.site-header, header.wp-block-template-part) a:is(.phone-link, .button, .wp-block-button__link),
  :is(.site-header, header.wp-block-template-part) a:is(.phone-link, .button, .wp-block-button__link)::before {
    transition: none !important;
  }
}

@media (min-width: 961px) and (max-width: 1280px) {
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header:has(.header-actions > .phone-link[href^="tel:"]) {
    grid-template-columns: 110px minmax(0, 1fr) auto;
    min-height: 104px;
    padding-left: 24px;
    column-gap: 14px;
  }
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .header-actions:has(> .phone-link[href^="tel:"]) { gap: 20px; margin-left: 0; }
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .desktop-nav { gap: 14px; }
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .desktop-nav > a,
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .nav-dropdown-trigger { font-size: 14px; }

  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .phone-link[href^="tel:"],
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part nav.jims-glass-menu a.wp-block-button__link[href^="tel:"] {
    padding-left: 39px;
    font-size: 16px;
    background-size: 16px 16px, 30px 30px !important;
    background-position: 7px center, left center !important;
  }
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .header-actions:has(> .phone-link[href^="tel:"]) > a.button,
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part nav.jims-glass-menu a.wp-block-button__link:is([href="#jims"], [href*="/booking/"]) {
    flex-basis: 132px;
    width: 132px;
    min-height: 68px;
    height: 68px;
    padding: 14px 20px;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    font-size: 17px;
  }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part .wp-block-group.alignwide {
    min-height: 104px;
    padding-left: 24px;
    gap: 18px;
  }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container-content { min-height: 104px; gap: 18px; }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__container { gap: 14px; }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part .wp-block-navigation-item__content { font-size: 14px; }
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container-content > .wp-block-buttons { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  :is(.site-header, header.wp-block-template-part) a::after { transition: none !important; }
}

/* Alex: stronger, larger navigation labels in the shared desktop header. */
@media (min-width: 961px) {
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .desktop-nav > a,
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .nav-dropdown-trigger,
  body.jimsglass-presentation.wp-theme-jims-wp .wp-site-blocks > header.wp-block-template-part
  nav.jims-glass-menu .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    font-size: clamp(16px, 1.55vw, 20px);
    font-weight: 800;
    line-height: 1.25;
  }
  :is(body.jg-homepage-exact, body.jg-domestic-services-exact, body.jg-core-exact)
  .site-header .nav-dropdown-item {
    font-size: 14px;
    font-weight: 750;
  }
}
