/*
Theme Name: 2025_child
Template: twentytwentyfive
Version: 1.3.3
Description: Window Hero centralised design styles.
*/

/* 1. Shared design values. Colours and fonts come from theme.json. */
:root, .editor-styles-wrapper {
  --wh-navy: var(--wp--preset--color--custom-2, #003b64);
  --wh-amber: var(--wp--preset--color--custom-11, #fcaf17);
  --wh-blue: var(--wp--preset--color--custom-3, #0075aa);
  --wh-heading-font: var(--wp--preset--font-family--barlow, Barlow), Arial, sans-serif;
  --wh-body-font: var(--wp--preset--font-family--noto-sans, "Noto Sans"), Arial, sans-serif;
  --wh-border: #d7dfe5;
  --wh-surface: #f3f6f8;
  --wh-radius: 16px;
  --wh-gutter: 20px;
  --wh-content-width: 1200px;
  --wh-section-space: clamp(40px, 5vw, 72px);
  --wh-service-heading-gap: clamp(28px, 3vw, 40px);
  --wh-service-action-gap: 24px;
  --wh-card-font: var(--wp--preset--font-family--barlow-medium, "Barlow Medium"), Arial, sans-serif;
  --wh-faq-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem);
  --wh-card-padding: clamp(18px, 2vw, 28px);
  --wh-icon-size: 80px;
  --wh-service-icon-color: #2b82e9;
  --wh-card-shadow: 0 4px 14px rgb(0 28 50 / 12%);
  --wh-service-card-shadow: 0 4px 12px rgb(0 28 50 / 8%);
  --wh-hero-title-shadow: 0 1px 2px rgb(0 59 92 / 50%);
  --wh-copy-width: 780px;
  --wh-intro-badge-before: 90px;
  --wh-intro-badge-after: 90px;
}

@media (min-width: 768px) {
  :root, .editor-styles-wrapper {
    --wh-gutter: 32px;
    --wh-intro-badge-before: 32px;
    --wh-intro-badge-after: 56px;
  }
}
@media (min-width: 1280px) {
  :root, .editor-styles-wrapper { --wh-gutter: 40px; }
}
html { scroll-padding-top: 110px; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid var(--wh-blue); outline-offset: 4px; }
:where(a, button, input, textarea, select, summary) { scroll-margin-block: 110px; }
@media (prefers-reduced-motion: reduce) {
  .parallelogram-btn .wp-block-button__link, .parallelogram-btn .wp-block-button__link::before { transition: none; }
}

/* 2. Reusable text roles; no individual heading sizes needed. */
.wh-eyebrow {
  font-family: var(--wp--preset--font-family--barlow-medium, "Barlow Medium"), Arial, sans-serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.2;
}
.wp-block-group.wh-section-heading > :is(.wp-block-heading, .wh-eyebrow, .wh-section-title) { margin-block: 0; }
.wp-block-group.wh-section-heading > * + :is(.wp-block-heading, .wh-section-title) { margin-block-start: 4px; }
.wh-section-title {
  font-family: var(--wh-heading-font); font-style: normal; font-weight: 700;
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.75rem); line-height: 1.15;
}

/* Shared desktop reading width for page body copy. Blog posts, cards
 * and form layouts keep their own measures. Mobile gutters are unchanged.
 */
@media (min-width: 768px) {
  .wp-block-group:is(.wh-home-intro, .wh-service-body) {
    width: 100%; max-width: var(--wh-copy-width); min-width: 0;
  }
  .wp-block-group.wh-home-intro {
    --wp--style--global--content-size: var(--wh-copy-width);
  }
  .wh-home-intro > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: 100%; }
  .page main > .wp-block-post-content > :is(p, .wp-block-list, .wp-block-table, .wp-block-heading:not(.wh-section-title)),
  .wh-service-body > :is(p, .wp-block-list, .wp-block-table, .wp-block-heading:not(.wh-section-title)) {
    max-width: var(--wh-copy-width);
  }
}

/* Service content: replaces individual spacer blocks on all five service pages. */
.wp-block-group.wh-service-body {
  padding-block: var(--wh-section-space); margin-block: 0;
}
.wh-service-body > .wh-service-intro { margin-block: 0 24px; }
.wh-service-body > .wp-block-heading { margin-block-start: var(--wh-service-heading-gap); }
.wh-service-body > .wp-block-separator { margin-block: var(--wh-service-heading-gap); }
.wh-service-body > .wh-actions.wp-block-buttons { margin-block-start: var(--wh-service-action-gap); }

/* 3. Shared action buttons. The angle belongs to the background, so focus rings are not clipped. */
.parallelogram-btn.wp-block-button { filter: drop-shadow(0 2px 2px rgb(0 38 64 / 15%)); }
.parallelogram-btn .wp-block-button__link {
  position: relative; isolation: isolate; display: inline-flex;
  align-items: center; justify-content: center; box-sizing: border-box;
  min-height: 48px; padding: 14px 32px; white-space: nowrap;
  border: 0; border-radius: 0; background: transparent; color: var(--wh-navy);
  font: 700 1.125rem/1.2 var(--wh-heading-font); text-align: center; text-decoration: none;
  box-shadow: none; transition: color .15s ease;
}
.parallelogram-btn .wp-block-button__link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--wh-amber); clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  transition: background-color .15s ease;
}
.parallelogram-btn.wh-button-secondary .wp-block-button__link::before,
.parallelogram-btn.outline .wp-block-button__link::before { background: var(--wh-navy); }
.parallelogram-btn:is(.wh-button-secondary, .outline) .wp-block-button__link::after {
  content: ""; position: absolute; inset: 1px 2px; z-index: -1;
  background: #fff; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
.parallelogram-btn:is(.wh-button-secondary, .outline) .wp-block-button__link:hover::after { background: var(--wh-navy); }
.parallelogram-btn.black .wp-block-button__link::before { background: var(--wh-navy); }
.parallelogram-btn.black .wp-block-button__link { color: #fff; }
.parallelogram-btn .wp-block-button__link:hover { color: #fff; }
.parallelogram-btn .wp-block-button__link:hover::before { background: var(--wh-navy); }
.parallelogram-btn.black .wp-block-button__link:hover { color: var(--wh-navy); }
.parallelogram-btn.black .wp-block-button__link:hover::before { background: var(--wh-amber); }
.parallelogram-btn .wp-block-button__link:focus-visible,
.wh-contact-form :is(input, textarea, button):focus-visible,
.wh-faq-toggle:focus-visible { outline: 3px solid var(--wh-blue); outline-offset: 4px; }
.wh-actions.wp-block-buttons { gap: 16px; margin-block: 0; }

/* 4. Hero. One reusable structure across the existing pages. */
.wh-hero.wp-block-cover {
  box-sizing: border-box; min-height: 470px;
  border: 0; border-radius: 0;
  margin-block: 0; padding: clamp(32px, 5vw, 64px) var(--wh-gutter);
  color: #fff; overflow: hidden;
}
.wh-hero > .wp-block-cover__inner-container { width: 100%; max-width: var(--wh-content-width); margin-inline: auto; }
.wh-hero .wh-hero-content { max-width: 680px; }
.wh-hero .wh-eyebrow { color: #fff; margin: 0 0 8px; }
.wh-hero .wh-hero-title { color: var(--wh-amber); margin: 0; line-height: 1.08; text-wrap: balance; text-shadow: var(--wh-hero-title-shadow); }
.wh-hero .wh-hero-copy { margin: 28px 0; max-width: 560px; }
.wh-hero-copy p { margin: 0; font-family: var(--wh-heading-font); font-weight: 700; font-style: italic; line-height: 1.35; }
.wh-hero-copy p + p { margin-top: 12px; }
.wh-hero .wh-actions { justify-content: flex-start; margin-top: 28px; }
.wh-hero.wh-hero--simple { min-height: 340px; }

/* Shared image crop for all heroes, including simple/contact heroes. */
.wh-hero > .wp-block-cover__image-background {
  object-position: 65% 100%; transform: scale(1.3); transform-origin: 75% 100%;
}
@media (max-width: 767px) {
  .wh-hero > .wp-block-cover__image-background {
    object-position: 50% 100%; transform: scale(1.5); transform-origin: 50% 100%;
  }
}

/* 5. Cards. Grid, padding and typography are managed here for every instance. */
.wh-card-grid { display: grid; gap: 20px; }
.wh-card-grid--benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wh-card-grid--process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wh-card-grid--services { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wh-card-grid > .wh-card {
  box-sizing: border-box; min-width: 0; margin: 0;
  padding: var(--wh-card-padding); border-radius: var(--wh-radius); text-align: center;
}
.wh-card-grid--benefits > .wh-card,
.wh-card-grid--process > .wh-card { box-shadow: var(--wh-card-shadow); }
.wh-card > * { margin-block: 0; }
.wh-card > * + * { margin-block-start: 16px; }
.wh-card .wh-card-title {
  font: italic 500 clamp(1.75rem, 1.5rem + .6vw, 2rem)/1.18 var(--wh-card-font);
  margin-inline: 0; text-wrap: balance;
}
.wh-card-title strong { font-weight: inherit; }
.wh-card .wp-block-outermost-icon-block { min-height: var(--wh-icon-size); display: flex; align-items: center; justify-content: center; }
.wh-card .icon-container { max-width: var(--wh-icon-size); }
.wh-card .icon-container svg { display: block; width: 100%; height: auto; max-height: var(--wh-icon-size); }
.wh-card a { text-underline-offset: .15em; text-decoration-thickness: 1px; }

/* One service-card component: compact on the homepage, descriptions in the overview.
 * Use the upright Barlow 500 already registered in theme.json. Icons remain editable
 * SVGs in the shared Gutenberg pattern.
 */
.wh-card-grid > .wh-card--service {
  --wh-icon-size: 64px;
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px;
  min-height: 240px; padding: 24px 20px;
  border: 1px solid var(--wh-border); background: #fff; box-shadow: var(--wh-service-card-shadow);
}
/* Override WordPress's later flow-layout margins so grid items share a centre. */
.wh-card-grid > .wh-card--service > * { margin: 0; }
.wh-card--service .wh-card-title {
  width: 100%; min-height: 2.4em;
  font: normal 500 1.5rem/1.2 var(--wh-heading-font);
  text-transform: none; letter-spacing: normal; text-wrap: balance;
}
.wh-card--service .wh-card-title a { color: var(--wh-navy); text-decoration: none; }
.wh-card--service .wh-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--wh-radius); z-index: 1; }
.wh-card--service .wh-card-title a:focus-visible { outline: none; }
.wh-card--service .wh-card-title a:focus-visible::after { outline: 3px solid var(--wh-blue); outline-offset: 4px; }
.wh-card--service:hover .wh-card-title a { text-decoration: underline; }
.wh-card--service .icon-container { color: var(--wh-service-icon-color); }
.wh-card--service .wh-card-description {
  width: 100%; font: 400 1rem/1.5 var(--wh-body-font); color: #334b60; text-align: center;
}
.wh-card--service::after {
  content: ""; display: block; flex: 0 0 24px; width: 24px; height: 24px;
  margin-top: auto; background: var(--wh-navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wh-services-section:not(.wh-services-overview) .wh-card-description { display: none; }
.wh-services-overview .wh-card--service { min-height: 330px; }
.wh-services-overview .wh-services-intro { max-width: var(--wh-copy-width); margin: 20px auto 0; font: 400 1.125rem/1.6 var(--wh-body-font); color: var(--wh-navy); text-align: center; }
/* Keep block selection usable in Gutenberg; the public card remains one large link. */
.editor-styles-wrapper .wh-card--service .wh-card-title a::after { content: none; }

@media (min-width: 768px) and (max-width: 1199px) {
  .wh-card-grid--services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .wh-card-grid--process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .wh-card-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wh-card-grid--services { gap: 14px; }
  .wh-card-grid > .wh-card--service {
    --wh-icon-size: 48px;
    display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; grid-template-rows: auto auto;
    align-items: center;
    gap: 6px 8px; min-height: 108px; padding: 20px 12px; text-align: left;
  }
  .wh-card--service .wp-block-outermost-icon-block { grid-column: 1; grid-row: 1 / span 2; }
  .wh-card--service .wh-card-title { grid-column: 2; grid-row: 1 / span 2; min-height: 0; font-size: clamp(1.25rem, 5.2vw, 1.375rem); text-align: left; text-wrap: initial; }
  .wh-card--service .wh-card-title br { display: none; }
  .wh-card--service .wh-card-description { grid-column: 2; grid-row: 2; font-size: .9375rem; line-height: 1.4; align-self: start; text-align: left; }
  .wh-card--service::after { grid-column: 3; grid-row: 1 / span 2; width: 20px; height: 20px; margin: 0; }
  .wh-services-overview .wh-card--service { min-height: 132px; }
  .wh-services-overview .wh-card-title { grid-row: 1; align-self: end; }
  .wh-services-overview .wh-services-intro { font-size: 1rem; text-align: left; }
  .wh-hero.wp-block-cover { min-height: 430px; padding: 32px var(--wh-gutter); }
  .wh-hero.wh-hero--simple { min-height: 300px; }
  .wh-hero .wh-hero-copy { margin-block: 24px; }
  .wh-actions.wp-block-buttons { gap: 10px; }
  .wh-actions .wp-block-button { flex: 1 1 140px; min-width: 140px; }
  .wh-actions .wp-block-button__link { width: 100%; padding-inline: 18px; }
}

/* Background spans the section, including the full stack of cards on mobile. */
.wp-block-group.wh-services-section {
  box-sizing: border-box; margin-block: 0;
  padding: var(--wh-section-space) var(--wh-gutter);
  background: linear-gradient(to bottom, #fff 0, #e9edf0 80px, #e9edf0 calc(100% - 80px), #fff 100%);
  border-radius: 0;
}
.wh-services-section > .wh-card-grid { margin-block-start: 28px; }

/* 6. Rank Math FAQ. Content stays visible if JavaScript cannot load. */
/* Match body copy, including the homepage group and the estimator's Details wrapper. */
@media (min-width: 768px) {
  :is(.wp-block-rank-math-faq-block, #rank-math-faq),
  :is(.wp-block-group:not(.alignfull), .wp-block-details):has(> :is(.wp-block-rank-math-faq-block, #rank-math-faq)) {
    box-sizing: border-box; width: 100%; max-width: var(--wh-copy-width); margin-inline: auto;
  }
  .wp-block-heading:has(+ :is(.wp-block-rank-math-faq-block, #rank-math-faq)) {
    max-width: var(--wh-copy-width);
  }
}
:is(.wp-block-rank-math-faq-block, #rank-math-faq) :is(.rank-math-faq-item, .rank-math-list-item) {
  border: 1px solid var(--wh-border); border-radius: 8px;
  margin: 0 0 12px; background: var(--wh-surface); overflow: visible;
}
:is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-question {
  margin: 0; padding: 18px 20px; color: var(--wh-navy);
  font: 700 var(--wh-faq-size)/1.4 var(--wh-body-font);
}
:is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-answer { padding: 0 20px 20px; font: 400 var(--wh-faq-size)/1.6 var(--wh-body-font); }
:is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-answer :is(p, li) { font-size: inherit; font-weight: 400; }
:is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-answer > :first-child { margin-top: 0; }
:is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-answer > :last-child { margin-bottom: 0; }
:is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-answer[hidden] { display: none; }
:is(.wp-block-rank-math-faq-block, #rank-math-faq) .wh-faq-ready .rank-math-question { padding: 0; }
.wh-faq-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 18px 20px; border: 0; border-radius: 8px;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.wh-faq-toggle::after { content: "+"; flex: 0 0 20px; font: 400 1.5rem/1 Arial, sans-serif; text-align: center; }
.wh-faq-toggle[aria-expanded="true"]::after { content: "−"; }
.wh-faq-toggle:hover { background: #e8eef2; }

/* 7. Review integration. Keep provider layout, carousel and height handling. */
/* Provider uses !important; these two scoped overrides are intentional. */
.ti-widget.ti-goog .ti-review-content {
  font-family: var(--wh-body-font) !important;
  font-size: 16px !important; line-height: 1.5 !important;
}
.ti-widget.ti-goog .ti-name { font-family: var(--wh-heading-font) !important; }

/* 8. Pricing tables. */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table :is(td, th) { border: 1px solid var(--wh-border); padding: 12px 14px; }
.wp-block-table th { background: var(--wh-surface); color: var(--wh-navy); font-family: var(--wh-heading-font); }
@media (max-width: 767px) { .wp-block-table :is(td, th) { padding: 10px 8px; } }

/* 9. Guarantee: keep the successful mobile image settings. Desktop gets more vertical image space. */
.wh-guarantee .wh-eyebrow, .wh-guarantee .wh-section-title { color: #fff; }
.wh-guarantee .wh-eyebrow { margin-bottom: 10px; }
.wh-guarantee .wh-guarantee-copy { font-family: var(--wh-heading-font); font-style: italic; line-height: 1.3; }
@media (min-width: 1024px) {
  .wh-guarantee.wp-block-cover { min-height: clamp(600px, 52vw, 900px) !important; }
  /* Inline focal point remains intact on mobile. */
  .wh-guarantee.wp-block-cover > .wp-block-cover__image-background { object-position: 50% 60% !important; }
  .wh-guarantee .wp-block-cover__inner-container { text-shadow: 0 1px 5px rgb(0 0 0 / 65%); }
  .wh-guarantee .wp-block-buttons { text-shadow: none; }
}

/* Contact details and form are one Gutenberg group with shared spacing. */
.wp-block-group.wh-contact-layout {
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(340px, 1.4fr);
  gap: clamp(24px, 5vw, 64px); align-items: start;
  padding-block: 32px 48px;
}
.wh-contact-layout > * { min-width: 0; margin-block: 0; }
.wp-block-group.wh-contact-details > * { margin-block: 0; }
.wp-block-group.wh-contact-details > * + * { margin-block-start: 12px; }
.wp-block-group.wh-contact-details > h3:not(:first-child) { margin-block-start: 28px; }
.wh-contact-layout .wh-contact-form { max-width: none; margin: 0; }
@media (max-width: 767px) {
  .wp-block-group.wh-contact-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .wh-contact-layout .wh-contact-form { padding: 20px 12px; }
  .wh-contact-form .g-recaptcha { overflow-x: auto; max-width: 100%; }
}

/* 10. Contact form. Endpoint, fields and CAPTCHA are unchanged. */
.wh-contact-form {
  box-sizing: border-box; width: 100%; max-width: 500px; margin: 32px auto;
  padding: clamp(20px, 4vw, 32px); border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius); background: #fff; font-family: var(--wh-body-font);
}
.wh-contact-form h2 { text-align: center; margin: 0 0 24px; }
.wh-contact-form label { display: block; margin-bottom: 20px; }
.wh-contact-form :is(input:not([type=hidden]), textarea) {
  display: block; box-sizing: border-box; width: 100%; margin-top: 6px; padding: 12px;
  border: 1px solid #8598a6; border-radius: 6px; background: #fff; color: #111; font: inherit;
}
.wh-contact-form textarea { min-height: 140px; resize: vertical; }
.wh-contact-form .g-recaptcha { margin-block: 20px; }
.wh-contact-form button {
  width: 100%; min-height: 48px; padding: 14px 24px; border: 0; border-radius: 6px;
  background: var(--wh-amber); color: var(--wh-navy); font: 700 1.125rem/1.2 var(--wh-heading-font); cursor: pointer;
}
.wh-contact-form button:hover { background: var(--wh-navy); color: #fff; }

/* 11. Shared header, native WordPress navigation and mobile estimate action. */
.wh-header-shell {
  --wh-ribbon-height: 40px;
  position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--wh-ribbon-height));
  z-index: 1000; background: #fff; margin-block: 0; width: auto;
}
/* Some templates include the synced pattern inside a template-part wrapper. */
.wp-block-template-part:has(> .wh-header-shell) {
  position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--wh-ribbon-height, 40px));
  z-index: 1000; margin-block: 0;
}
.wp-block-template-part > .wh-header-shell { position: relative; top: auto; }
.wp-block-group.wh-header-shell > * { margin-block: 0; }
.wh-ribbon {
  padding: 10px var(--wh-gutter); background: var(--wh-navy); color: #fff; text-align: center;
  font: 500 1rem/1.25 var(--wh-heading-font);
}
.wh-ribbon p { margin: 0; }
.wp-block-group.wh-nav-bar { margin-block: 0; padding: 10px var(--wh-gutter); background: #fff; border-bottom: 1px solid #e5eaed; }
.wp-block-group.wh-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; max-width: none; margin: 0; padding: 0; }
.wp-block-group.wh-nav-inner > * { margin-block: 0; }
.wh-nav-inner .wp-block-site-logo { flex: 0 0 auto; }
.wh-nav-inner .custom-logo { width: auto; max-width: 100%; height: 112px; object-fit: contain; display: block; }
.wh-navigation { font: 700 1.25rem/1.4 var(--wh-heading-font); color: var(--wh-navy); }
.wh-navigation .wp-block-navigation__container { gap: 24px; }
.wh-navigation .wp-block-navigation-item__content { padding-block: 10px; }
.wh-navigation .current-menu-item > .wp-block-navigation-item__content { text-decoration: underline; text-decoration-color: var(--wh-amber); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.wh-navigation .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 5px; }
.wh-navigation .wp-block-navigation__submenu-container {
  min-width: 230px; border: 1px solid var(--wh-border); border-radius: 8px;
  background: #fff; color: var(--wh-navy); padding: 8px; box-shadow: 0 8px 24px rgb(0 38 64 / 10%);
}
.wh-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item { width: 100%; }
.wh-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px; white-space: nowrap; }
.wh-navigation .wh-menu-legal-first { border-top: 1px solid var(--wh-border); margin-top: 6px; padding-top: 6px; }
.wh-navigation :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) { align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--wh-navy); }
.wh-navigation :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) svg { width: 28px; height: 28px; }
.wh-navigation .wp-block-navigation__responsive-container-close { display: flex; }
/* Stronger, slanted navy bars; preserve the native button and accessible label. */
.wh-navigation .wp-block-navigation__responsive-container-open { width: 56px; height: 48px; padding: 0; flex: 0 0 56px; }
.wh-navigation .wp-block-navigation__responsive-container-open svg { display: none; }
.wh-navigation .wp-block-navigation__responsive-container-open::before {
  content: ""; display: block; width: 42px; height: 26px; transform: skewX(-10deg);
  background: linear-gradient(to bottom, currentColor 0 4px, transparent 4px 11px, currentColor 11px 15px, transparent 15px 22px, currentColor 22px 26px);
}

.wh-menu-ribbon, .wh-menu-logo, .wh-menu-secondary { display: none; }
/* Leave enough room for the desktop links and estimate button before switching to the overlay. */
@media (max-width: 999px) {
  .wh-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .wh-navigation .wp-block-navigation__responsive-container-open { display: flex; }
}
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("https://windowhero.co.uk/wp-content/themes/2025_child/assets/fonts/barlow-semibold.woff2") format("woff2"); }
@media (min-width: 1000px) {
  .wh-navigation.wp-block-navigation { font: 600 20px/20px var(--wh-heading-font); letter-spacing: normal; }
  .wh-navigation .wp-block-navigation__responsive-container-open { display: none; }
}
.wh-navigation .wp-block-navigation__responsive-container.is-menu-open { padding: 0 0 calc(24px + env(safe-area-inset-bottom)); color: var(--wh-navy); background: #fff; }
.wh-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 16px; align-items: stretch; gap: 20px; font: 600 1.5rem/1.25 var(--wh-heading-font);
}
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { width: 100%; align-items: stretch; gap: 0; font: inherit; }
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item { align-items: stretch; width: 100%; }
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content { box-sizing: border-box; min-height: 60px; padding: 16px var(--wh-gutter); text-align: left; }
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-content .has-child.wp-block-navigation-submenu { position: relative; display: flex; flex-direction: column; align-items: stretch; }
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon {
  display: none;
}
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
  position: static; display: flex; flex-direction: column; visibility: visible; opacity: 1; height: auto; overflow: visible;
  min-width: 0; width: 100%; box-sizing: border-box; padding: 0 0 8px 16px;
  box-shadow: none; border: 0; border-radius: 0; gap: 0; font: normal 500 1.125rem/1.4 var(--wh-heading-font);
}
/* About's short submenu is always visible in the overlay. Desktop stays native. */
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item__content { white-space: normal; padding: 12px var(--wh-gutter); min-height: 48px; }
.wh-navigation .is-menu-open .wh-menu-logo { display: block; position: static; margin: 0; padding: 8px var(--wh-gutter); width: 100%; max-width: none; box-sizing: border-box; border-bottom: 1px solid var(--wh-border); }
.wh-navigation .is-menu-open .wh-menu-logo .custom-logo-link { display: block; width: 92px; height: 92px; max-width: 100%; }
.wh-navigation .is-menu-open .wh-menu-logo img.custom-logo { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.wh-navigation .is-menu-open .wh-menu-secondary { display: flex; flex-direction: column; align-items: stretch; gap: 0; list-style: none; padding: 0 var(--wh-gutter); margin: 0; border-top: 0; font-size: 16px; font-weight: 400; }
.wh-navigation .is-menu-open .wh-menu-secondary .wh-menu-legal { margin: 0; padding: 0; border: 0; }
/* Hide the estimate group only inside the open mobile/tablet navigation. */
.wh-navigation .is-menu-open .wp-block-buttons { display: none; }
/* Full-width menu rows and bold reference-style iconography. */
.wh-navigation .is-menu-open .wh-menu-ribbon { display: block; margin: 0; font: 500 1rem/1.25 var(--wh-heading-font); }
.wh-navigation .is-menu-open .wp-block-navigation__responsive-dialog { margin: 0; }
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item { border-bottom: 1px solid var(--wh-border); margin: 0; }
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-close { top: calc(var(--wh-ribbon-height, 40px) + 30px); right: var(--wh-gutter); width: 56px; height: 48px; padding: 0; }
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-close svg { display: none; }
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-close::before,
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-close::after { content: ""; position: absolute; width: 44px; height: 5px; background: currentColor; border-radius: 1px; transform: rotate(35deg); }
.wh-navigation .is-menu-open .wp-block-navigation__responsive-container-close::after { transform: rotate(-35deg); }
.wh-navigation .is-menu-open .wh-menu-secondary .wp-block-navigation-item__content { min-height: 44px; padding: 10px 0; }
@media (max-width: 767px) {
  .wp-block-group.wh-nav-bar { padding-block: 8px; }
  .wh-nav-inner .custom-logo { width: auto; height: 92px; max-width: 100%; }
  .wp-block-group.wh-nav-inner { gap: 16px; }
}
.mobile-cta-banner {
  position: fixed; inset: auto 0 0; box-sizing: border-box;
  padding: 10px var(--wh-gutter) calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--wh-border); z-index: 900;
  box-shadow: 0 -3px 14px rgb(0 38 64 / 8%); text-align: center;
}
.mobile-cta-banner .cta-button {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: 100%; min-height: 50px; padding: 12px 32px;
  background: transparent; color: var(--wh-navy); text-decoration: none;
  font: 700 1.125rem/1.25 var(--wh-heading-font);
}
.mobile-cta-banner .cta-button::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--wh-amber); clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}
.mobile-cta-banner .cta-button:hover { color: #fff; }
.mobile-cta-banner .cta-button:hover::before { background: var(--wh-navy); }
.mobile-cta-banner[hidden], .page-id-46 .mobile-cta-banner { display: none; }
@media (min-width: 768px) { .mobile-cta-banner { display: none; } }
footer.wp-block-template-part { margin-block-start: 0; }
.editor-styles-wrapper .wh-header-shell { position: relative; top: auto; z-index: auto; }

/* 12. Footer logos, heading and contact area. */
.wh-footer,
.wh-footer * {
  box-sizing: border-box;
}

.wh-footer {
  --wh-footer-navy: var(--wh-navy);
  --wh-footer-amber: var(--wh-amber);
  --wh-footer-card-height: 160px;
  --wh-footer-gutter: var(--wh-gutter);
  font-family: var(--wp--preset--font-family--barlow, "Barlow"), Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
}

/* Reset theme block spacing only inside this footer. */
.wh-footer .wp-block-group,
.wh-footer p,
.wh-footer figure {
  margin-block: 0;
}

.wh-footer .wh-footer-container {
  width: 100%;
  max-width: var(--wh-content-width);
  margin-inline: auto;
}

.wh-footer .wh-footer-trust {
  padding: clamp(32px, 4vw, 56px) var(--wh-footer-gutter);
  background: #fff;
}

.wh-footer .wh-footer-trust-title {
  margin: 0 0 24px; color: var(--wh-navy); text-align: center;
  font: 500 clamp(1.25rem, 1.1rem + .3vw, 1.5rem)/1.3 var(--wh-heading-font);
}

.wh-footer .wh-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
}

/* Equal boxes, with optical sizing for each differently shaped logo. */
.wh-footer .wh-footer-logo {
  --wh-logo-width: 250px;
  --wh-logo-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: var(--wh-footer-card-height);
  margin: 0;
  border: 1px solid #cfd3d8;
  border-radius: 6px;
  background: #fff;
}

.wh-footer figure.wh-footer-logo > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  border-radius: inherit;
}

.wh-footer figure.wh-footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: var(--wh-logo-width);
  max-height: var(--wh-logo-height);
  margin: 0;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1);
  opacity: 0.9;
}

.wh-footer .wh-footer-logo--chamber {
  --wh-logo-width: 238px;
  --wh-logo-height: 100px;
}

.wh-footer .wh-footer-logo--advertiser {
  --wh-logo-width: 280px;
  --wh-logo-height: 76px;
}

.wh-footer .wh-footer-logo--toprated {
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  color: #505050;
}

.wh-footer .wh-footer-seal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
}

.wh-footer .wh-footer-seal {
  display: block;
  width: 92px;
  height: 92px;
}

.wh-footer .wh-footer-attribution {
  max-width: 100%;
  color: #505050;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.wh-footer .wh-footer-main {
  border-top: 4px solid var(--wh-footer-amber);
  padding: 32px var(--wh-footer-gutter) 20px;
  background: var(--wh-footer-navy);
  color: #fff;
}

.wh-footer .wh-footer-main a {
  color: #fff;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
}

.wh-footer .wh-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
}

.wh-footer .wh-footer-brand {
  margin: 0;
  font-family: inherit;
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.wh-footer .wh-footer-brand a,
.wh-footer .wh-footer-phone a {
  text-decoration: none;
}

.wh-footer .wh-footer-location {
  margin-top: 6px;
  font-size: 20px;
}

.wh-footer .wh-footer-contact {
  text-align: right;
}

.wh-footer .wh-footer-phone {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.wh-footer .wh-footer-phone a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.wh-footer .wh-footer-social,
.wh-footer .wh-footer-policy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}

.wh-footer .wh-footer-social {
  justify-content: flex-end;
  margin-top: 4px;
}

.wh-footer .wh-footer-social a,
.wh-footer .wh-footer-policy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
}

.wh-footer .wh-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 28%);
  font-size: 14px;
}

.wh-footer .wh-footer-legal {
  flex: 1 1 420px;
}

.wh-footer .wh-footer-policy {
  flex: 0 0 auto;
}

.wh-footer .wh-footer-main a:hover,
.wh-footer .wh-footer-attribution:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.wh-footer .wh-footer-logo:focus-within {
  border-color: #505050;
}

.wh-footer .wh-footer-trust a:focus-visible {
  outline: 3px solid var(--wh-footer-navy);
  outline-offset: 3px;
}

.wh-footer .wh-footer-main a:focus-visible {
  outline: 3px solid var(--wh-footer-amber);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .wh-footer {
    --wh-footer-card-height: 148px;
  }

  .wh-footer .wh-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wh-footer figure.wh-footer-logo > a {
    padding: 12px;
  }

  .wh-footer .wh-footer-logo--toprated {
    padding: 10px;
    gap: 6px;
  }

  .wh-footer .wh-footer-seal {
    width: 76px;
    height: 76px;
  }

  .wh-footer .wh-footer-main {
    padding-top: 28px;
  }

  .wh-footer .wh-footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .wh-footer .wh-footer-contact {
    text-align: left;
  }

  .wh-footer .wh-footer-social {
    justify-content: flex-start;
    gap: 0 20px;
  }

  .wh-footer .wh-footer-bottom {
    margin-top: 20px;
  }
}

/* 13. Blog and archives use one editorial layout. */
.wp-block-group.wh-blog { box-sizing: border-box; width: calc(100% - 2 * var(--wh-gutter)); max-width: var(--wh-content-width); margin: var(--wh-section-space) auto; }
.wh-blog > * + * { margin-block-start: 24px; }
/* Main blog/archive titles inherit the shared H1 typography from theme.json. */
.wh-blog .wh-blog-title { margin: 0; color: var(--wh-navy); }
.wh-blog-intro { max-width: 680px; }
.wh-blog .wh-blog-tabs { display: flex; flex-wrap: wrap; gap: 12px 28px; border-bottom: 1px solid var(--wh-border); margin-block: 28px 36px; }
.wh-blog-tabs a { padding: 10px 0; border-bottom: 3px solid transparent; text-decoration: none; color: var(--wh-navy); font: 500 1.125rem/1.4 var(--wh-heading-font); }
.wh-blog-tabs a[aria-current="page"] { border-color: var(--wh-amber); }
.wh-blog-tabs a:hover { border-color: var(--wh-navy); }
.wh-blog .wh-blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; list-style: none; margin: 0; padding: 0; }
.wh-blog-grid > li { min-width: 0; margin: 0; }
.wh-article-card { height: 100%; box-sizing: border-box; padding-bottom: 28px; border-bottom: 1px solid var(--wh-border); }
.wh-article-card > * { margin-block: 0; }
.wh-article-card > * + * { margin-block-start: 14px; }
.wh-article-image { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--wh-radius); background: var(--wh-surface); }
.wh-article-image a { display: block; width: 100%; height: 100%; }
.wh-article-image img { width: 100%; height: 100%; object-fit: contain; }
.wh-blog .wh-article-title { font: 500 clamp(1.5rem, 1.3rem + .5vw, 1.75rem)/1.25 var(--wh-heading-font); text-transform: none; letter-spacing: normal; }
.wh-article-title a { text-decoration: none; }
.wh-article-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wh-article-category { color: var(--wh-navy); font: 500 .875rem/1.4 var(--wh-heading-font); }
.wh-article-category a { text-decoration: none; }
.wh-article-excerpt { font: 400 1rem/1.6 var(--wh-body-font); }
.wh-article-excerpt p { margin: 0; }
.wh-article-more { display: inline-flex; align-items: center; min-height: 44px; color: var(--wh-navy); font: 500 1rem/1.4 var(--wh-heading-font); text-underline-offset: 4px; }
.wh-blog-pagination { margin-top: 40px; gap: 12px; }
.wh-blog-pagination a, .wh-blog-pagination .current { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.wh-blog-pagination .current { background: var(--wh-navy); color: #fff; border-radius: 6px; }
@media (max-width: 767px) {
  .wh-blog .wh-blog-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .wh-blog .wh-blog-tabs { gap: 12px 24px; }
}
