/*
 * WordPress layer for the Mills brand design (loaded after brand.css; brand.css is shared with the
 * static site and is never edited here).
 *
 * 1. Page canvas      Astra page shell, section backgrounds Kadence resets
 * 2. Block mapping    where WordPress blocks differ from the static tags (figure for li/img, quote, p wrappers)
 * 3. Header           Astra Header Builder markup styled as the static .strip and .bar
 * 4. Footer           Astra Footer Builder wrappers made transparent around the brand .foot markup
 *
 * The block pattern itself (Row Layout + "wrap" column, display: contents) lives in wp-reset.css.
 */

/* =========================================================
   1. Page canvas
   ========================================================= */
/* Astra shrinks the root font to 91.2% on tablets and phones; the brand sizes are in rem at 16px */
html { font-size: 100%; }
body, body.ast-page-builder-template, body.ast-plain-container { background-color: var(--paper); color: var(--ink); }
.ast-page-builder-template .site-content > .ast-container, .ast-plain-container .site-content > .ast-container { max-width: 100%; padding: 0; }
.ast-page-builder-template .entry-header, .ast-page-builder-template .entry-header.ast-header-without-markup { display: none; }
.ast-page-builder-template .site-content #primary, .ast-page-builder-template .entry-content { margin: 0; padding: 0; }
.entry-content[data-ast-blocks-layout] > .wp-block-kadence-rowlayout { max-width: none; margin: 0; }

/* Kadence paints every Row Layout background-color (transparent) after brand.css; give the brand colors back */
.wp-block-kadence-rowlayout.maxx, .wp-block-kadence-rowlayout.tone-purple { background-color: var(--aubergine-band); }
.wp-block-kadence-rowlayout.gallery, .wp-block-kadence-rowlayout.careers, .wp-block-kadence-rowlayout.tone-white { background-color: var(--white); }
.wp-block-kadence-rowlayout.reviews { background-color: var(--aubergine); }
.wp-block-kadence-rowlayout.close { background-color: var(--aubergine-deep); }

/* Kadence gives every Row Layout a clearfix ::before (display: table), which shrinks brand overlays to nothing */
.kb-row-layout-wrap.hero::before { display: block; }

/* Astra underlines every content link on single pages (.ast-single-post .entry-content a). Only the brand
   link styles underline; text-decoration-line keeps their underline color, thickness and offset. */
.ast-single-post .entry-content a { text-decoration-line: none; }
/* Astra's shorthand also resets the underline color, thickness and offset, so those are restated too */
.ast-single-post .entry-content :is(.link, .svc .more, .region__foot .tel, .page-hero__call a, .prose a:not(.btn), .link-card .more, .breadcrumb a:hover, .form-privacy a) { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--gold-mid); }
.ast-single-post .entry-content :is(.link, .svc .more, .link-card .more) { text-underline-offset: 5px; }
.ast-single-post .entry-content .link:hover { text-decoration-color: var(--aubergine); }
.ast-single-post .entry-content :is(.on-dark, .tone-purple) .link, .ast-single-post .entry-content .page-hero__call a { text-decoration-color: var(--gold); }
.ast-single-post .entry-content :is(.on-dark, .tone-purple) .link:hover { text-decoration-color: var(--gold); }
.ast-single-post .entry-content .breadcrumb a:hover { text-decoration-thickness: auto; }
.ast-single-post .entry-content .form-privacy a:not(.btn):not(.link) { text-decoration-thickness: auto; text-underline-offset: auto; text-decoration-color: currentColor; }

/* Swipe pager buttons: Astra pads and recolors every <button> */
.pager .pager__btn { padding: 0; line-height: 1; box-shadow: none; }
.pager .pager__btn:hover, .pager .pager__btn:focus { background: var(--white); color: var(--aubergine); border-color: var(--line); }
.on-dark .pager .pager__btn:hover, .on-dark .pager .pager__btn:focus { background: transparent; color: var(--gold); border-color: var(--gold); }

/* WordPress gives lazy images with sizes="auto" contain-intrinsic-size: 3000px 1500px, which blows up
   images that fill their box (height: 100%), e.g. the wide link card, service cards, mosaic */
.entry-content img { contain-intrinsic-size: none; }


/* =========================================================
   2. Block mapping
   ========================================================= */
/* Nothing here any more: pages are Kadence blocks that inc/kadence-plain.php prints as the static markup,
   so brand.css applies directly. (The old core-block mapping rules were removed on 2026-11-19.) */

/* =========================================================
   3. Header (Astra Header Builder)
   ========================================================= */
#masthead { font-family: var(--font-body); }
#masthead .ast-container { max-width: none; padding: 0; }
#masthead .site-above-header-wrap, #masthead .site-primary-header-wrap { padding-inline: var(--gutter); }
#masthead .ast-builder-grid-row { width: 100%; max-width: calc(1400px - 2 * var(--gutter)); margin-inline: auto; }

/* Phone strip (above row: HTML 1 and HTML 2) */
#masthead .ast-above-header-bar { background: var(--aubergine-deep); color: var(--white); font-size: 0.9375rem; border: 0; }
#masthead .ast-above-header-bar .ast-builder-grid-row { min-height: 40px; }
#masthead .ast-above-header-bar .ast-builder-html-element p { margin: 0; }
#masthead .strip__phones { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
#masthead .strip__phones a { display: inline-flex; gap: 8px; align-items: center; padding-block: 8px; color: var(--white); font-weight: 700; text-decoration: none; }
#masthead .strip__phones a span { font-weight: 400; color: var(--mist); }
#masthead .strip__phones a:hover { color: var(--gold); }
#masthead .strip__note { color: var(--mist); }

/* Main bar */
#masthead .ast-primary-header-bar { background: var(--white); border-bottom: 1px solid var(--line); }
#masthead .ast-primary-header-bar .ast-builder-grid-row { min-height: 84px; }
#masthead .site-header-primary-section-right { gap: 20px; }
#masthead .site-logo-img, #masthead .site-branding { padding: 0; }
#masthead .site-logo-img .custom-logo { width: auto; max-width: none; height: 68px; }

/* Desktop menu */
#masthead .main-header-menu { gap: 2px; align-items: center; flex-wrap: nowrap; }
#ast-desktop-header .site-header-primary-section-right { justify-content: flex-end; }
#ast-desktop-header .ast-builder-menu-1, #ast-desktop-header .ast-builder-menu-1 .ast-main-header-bar-alignment, #ast-desktop-header .ast-builder-menu-1 .main-header-bar-navigation, #ast-desktop-header .ast-builder-menu-1 .site-navigation { flex: 0 0 auto; padding: 0; }
#masthead .main-header-menu > .menu-item { line-height: normal; height: auto; }
#masthead .main-header-menu .menu-link { display: block; padding: 10px; font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.55; white-space: nowrap; color: var(--ink); border-radius: 6px; text-decoration: none; transition: color .2s var(--ease), background-color .2s var(--ease); }
#masthead .main-header-menu .menu-link:hover, #masthead .main-header-menu .menu-item:hover > .menu-link, #masthead .main-header-menu .current-menu-item > .menu-link { color: var(--violet); background: var(--paper); }
#masthead .main-header-menu .current-menu-item > .menu-link:not(:hover) { background: transparent; color: var(--ink); }
#masthead .main-header-menu > .menu-item-has-children > .menu-link { font-weight: 700; color: var(--aubergine); }
#masthead .main-header-menu > .menu-item-has-children > .menu-link .dropdown-menu-toggle { display: none; }
#ast-desktop-header .main-header-menu > .menu-item-has-children > .menu-link::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
#ast-desktop-header .main-header-menu .sub-menu { top: 100%; left: 0; width: auto; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: 0 14px 30px rgba(36, 10, 66, 0.14); }
#ast-desktop-header .main-header-menu .sub-menu .menu-item { border: 0; }
#ast-desktop-header .main-header-menu .sub-menu .menu-link { padding: 9px 12px; }
#masthead .main-header-menu .sub-menu .ast-icon, #masthead .main-header-menu .sub-menu .menu-link > .ast-icon { display: none; }

/* Estimate button (button 1 in the bar, button 2 in the mobile dropdown): the brand .btn--sm */
#masthead .ast-builder-button-wrap > .menu-link { display: none; }
#masthead .ast-custom-button-link { display: inline-flex; text-decoration: none; border-radius: var(--pill); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
#masthead .ast-custom-button-link .ast-custom-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--pill); background: linear-gradient(90deg, var(--gold-mid), var(--gold) 50%, var(--gold-mid)); color: var(--aubergine); font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; line-height: 1.2; white-space: nowrap; border: 1px solid var(--tan); box-shadow: inset 0 -2px 0 rgba(55, 20, 97, 0.18); }
#masthead .ast-custom-button-link:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(36, 10, 66, 0.22); }
#masthead .ast-custom-button-link:hover .ast-custom-button { color: var(--aubergine); background: linear-gradient(90deg, var(--gold-mid), var(--gold) 50%, var(--gold-mid)); border-color: var(--tan); }

/* Mobile and tablet header (Astra switches below 1300px, see functions.php). Astra's own CSS still
   swaps the two headers at 921px, so follow the body class its breakpoint script sets instead. */
body.ast-header-break-point #ast-desktop-header { display: none; }
body.ast-header-break-point #ast-mobile-header { display: block; }
body.ast-desktop #ast-mobile-header { display: none; }
#masthead #ast-mobile-header .ast-above-header-bar, #masthead #ast-mobile-header .ast-primary-header-bar { padding-inline: var(--gutter); }
#masthead .ast-above-header-bar .ast-builder-layout-element { padding: 0; margin: 0; }
#ast-mobile-header .site-header-primary-section-right { gap: 20px; }
#masthead .menu-toggle.main-header-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--aubergine); }
#masthead .menu-toggle.main-header-menu-toggle:hover, #masthead .menu-toggle.main-header-menu-toggle:focus { background: var(--white); color: var(--aubergine); border-color: var(--line); }
#masthead .menu-toggle .ast-mobile-svg { width: 22px; height: 22px; fill: currentColor; }
#ast-mobile-header .ast-mobile-header-content { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(36, 10, 66, 0.12); max-height: calc(100svh - 80px); overflow-y: auto; padding: 8px var(--gutter) 20px; }
#ast-mobile-header .ast-mobile-header-content .main-header-menu { background: transparent; border: 0; }
#ast-mobile-header .ast-mobile-header-content .menu-item { border: 0; }
#ast-mobile-header .ast-mobile-header-content .menu-link { display: block; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.0625rem; font-weight: 500; color: var(--ink); background: transparent; }
#ast-mobile-header .ast-mobile-header-content .menu-item-has-children > .menu-link { font-weight: 700; color: var(--aubergine); }
#ast-mobile-header .ast-mobile-header-content .sub-menu { display: block !important; padding: 0 0 0 16px; margin: 0; background: transparent; border: 0; box-shadow: none; }
#ast-mobile-header .ast-mobile-header-content .ast-menu-toggle, #ast-mobile-header .ast-mobile-header-content .dropdown-menu-toggle { display: none; }
#ast-mobile-header .ast-mobile-header-content .ast-header-button-2 { display: none; }

@media (max-width: 640px) {
  #masthead .ast-above-header-bar { font-size: 0.875rem; }
  #masthead .ast-above-header-bar .ast-builder-grid-row { display: flex; justify-content: center; }
  #masthead .ast-above-header-bar .site-header-above-section-right { display: none; }
  #masthead .strip__phones { gap: 18px; }
  #masthead .ast-primary-header-bar .ast-builder-grid-row { min-height: 68px; }
  #masthead .site-header-primary-section-right { gap: 12px; }
  #masthead .site-logo-img .custom-logo { height: 46px; }
  #ast-mobile-header .ast-primary-header-bar .ast-header-button-1 { display: none; }
  #ast-mobile-header .ast-mobile-header-content .ast-header-button-2 { display: block; padding-top: 18px; }
  #ast-mobile-header .ast-mobile-header-content .ast-header-button-2 .ast-custom-button-link, #ast-mobile-header .ast-mobile-header-content .ast-header-button-2 .ast-custom-button { width: 100%; min-height: 48px; }
}

/* =========================================================
   4. Footer (Astra Footer Builder > HTML 1 holds the brand .foot markup)
   ========================================================= */
.site-footer { background: var(--aubergine-deep); }
#colophon .site-primary-footer-wrap, #colophon .ast-builder-grid-row-container, #colophon .ast-builder-grid-row-container-inner, #colophon .ast-builder-grid-row, #colophon .ast-builder-footer-grid-columns, #colophon .site-footer-section, #colophon .ast-footer-html-1, #colophon .ast-header-html, #colophon .ast-builder-html-element { display: block; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; }
.site-footer .foot { font-family: var(--font-body); text-align: left; word-break: normal; overflow-wrap: normal; }
.site-footer .foot__social a { white-space: nowrap; }
.site-footer .foot a { color: inherit; }
.site-footer .foot a:hover { color: var(--gold); }
.site-footer .foot__social a { color: var(--white); }
.site-footer .foot__shops .tel { color: var(--gold); }
.site-footer .foot h3 { font-size: 1rem; line-height: 1.2; color: var(--white); margin: 0 0 12px; }
.site-footer .foot ul { margin: 0; padding: 0; list-style: none; }
.site-footer .foot p { margin: 0; }
.site-footer .foot__brand p { margin-top: 14px; }
.site-footer .foot .btn { color: var(--aubergine); }
.site-footer .foot .btn:hover { color: var(--aubergine); }

/* =========================================================
   5. Inner-page components on WordPress blocks
   ========================================================= */


/* FAQ: Kadence Accordion with className "faq" (FAQ schema on), styled like the static details/summary */
:is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-inner-wrap { display: block; gap: 0; }
:is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-pane { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
:is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-header-wrap { margin: 0; padding: 0; }
:is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-wrap .kt-blocks-accordion-header { display: flex; align-items: center; width: 100%; margin: 0; padding: 22px 52px 22px 0; position: relative; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--aubergine); cursor: pointer; }
:is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-wrap .kt-blocks-accordion-header:hover, :is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-wrap .kt-blocks-accordion-header:focus, :is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-wrap .kt-blocks-accordion-header.kt-accordion-panel-active { background: none; color: var(--aubergine); border: 0; }
:is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-wrap .kt-blocks-accordion-header:hover { color: var(--violet); }
:is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-blocks-accordion-title { font: inherit; color: inherit; }
:is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-blocks-accordion-title-wrap { padding-right: 0; }
:is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-blocks-accordion-icon-trigger { position: absolute; right: 8px; top: 50%; width: 18px; min-width: 18px; height: 18px; margin: -9px 0 0; background: none; border: 0; }
:is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-wrap .kt-blocks-accordion-icon-trigger::before, :is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-wrap .kt-blocks-accordion-icon-trigger::after { left: 0; top: 8px; width: 18px; height: 2px; border-radius: 0; background-color: var(--gold-mid); }
:is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-wrap .kt-accordion-panel-inner { padding: 0 0 24px; border: 0; background: none; max-width: 68ch; }
:is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-panel-inner > * + *, :is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .faq__a > * + * { margin-top: 12px; }
@media (max-width: 900px) {
  :is(.wp-block-kadence-accordion.faq, .faq .wp-block-kadence-accordion) .kt-accordion-wrap .kt-blocks-accordion-header { font-size: 1.0625rem; padding-block: 18px; }
}

/* Form legends: Astra's fieldset legend margin and padding pushed the consent text down and in. */
.entry-content .consent legend,
.entry-content fieldset.field legend { margin: 0; padding: 0; }
.entry-content fieldset.field { padding: 0; }

/* Word-for-word inner pages: Astra's paragraph margin beat wp-reset's zero inside these wrappers (static site has 0). */
.entry-content :is(.prose, .split__text, .section-head) p { margin-bottom: 0; }
/* Inline text links: Astra removes the underline the static pages keep. */
.entry-content :is(.split__text, .close, .section-head, .feature-grid, .faq__a, .prose) p a:not(.btn):not(.link):not(.num) { text-decoration: underline; }

/* =========================================================
   6. Gravity Forms in the form card (Forms CSS is off; this matches the static .form-grid / .field form)
   ========================================================= */
.form-card .gform_wrapper { margin: 0; }
/* "Fields marked * are required.": wp-reset.css zeroes paragraph margins at Astra's strength, above this brand rule */
.entry-content .form-req { margin-bottom: 18px; }
.form-card .gform_validation_container, .form-card .gform_hidden, .form-card .gform_wrapper input[type="hidden"], .form-card .gform_ajax_spinner { display: none !important; }
.form-card .gform_fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 0; padding: 0; list-style: none; }
.form-card .gfield { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; grid-column: 1 / -1; }
.form-card .gfield--width-half { grid-column: auto; }
.form-card .gfield_label, .form-card fieldset.gfield > legend.gfield_label { display: block; margin: 0; padding: 0; font-weight: 700; font-size: 1rem; line-height: 1.55; color: var(--aubergine); }
.form-card .gfield_required { color: var(--tan); font-weight: 700; }
.form-card .gfield_label > .gfield_required { margin-left: 0.28em; }
.form-card .gfield_description { font-size: 0.9rem; color: var(--muted); }
.form-card .ginput_container { margin: 0; }
.form-card .ginput_container :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]), select, textarea) {
  display: block; width: 100%; height: auto; min-height: 50px; margin: 0; padding: 12px 14px;
  font: inherit; font-size: 1.0625rem; line-height: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid rgba(55, 20, 97, 0.28); border-radius: 6px; box-shadow: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.form-card .ginput_container textarea { height: auto; min-height: 130px; resize: vertical; line-height: 1.45; }
.form-card #input_2_5, .form-card #input_1_5 { height: 149px; }
.form-card #input_2_6, .form-card #input_1_6 { height: 130px; }
.form-card #input_3_5 { height: 174px; }
.form-card .ginput_container input[type="file"] { width: 100%; padding: 10px; min-height: 0; font: inherit; font-size: 1.0625rem; background: var(--white); border: 1.5px solid rgba(55, 20, 97, 0.28); border-radius: 6px; }
.form-card .ginput_container :is(input, select, textarea):hover { border-color: var(--violet); }
.form-card .ginput_container :is(input, select, textarea):focus { outline: 3px solid var(--jay); outline-offset: 1px; border-color: var(--violet); background: var(--white); }
.form-card .gfield_error .ginput_container :is(input, select, textarea) { border-color: #A3292B; }
.form-card .gfield_validation_message, .form-card .validation_message { margin: 0; font-size: 0.95rem; font-weight: 700; color: #A3292B; }
.form-card .gform_validation_errors { margin: 0 0 20px; padding: 14px 18px; border: 1.5px solid #A3292B; border-radius: 6px; background: #FBF1F1; color: #A3292B; }
.form-card .gform_validation_errors h2 { margin: 0; font-size: 1rem; font-weight: 700; color: #A3292B; }
/* GF's "Accepted file types" line: kept for screen readers, hidden like the static form (its hint gives the size limit) */
.form-card .gform_fileupload_rules { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* SMS consent: the static .consent box */
.form-card fieldset.gfield--type-consent { margin: 6px 0 0; padding: 16px 18px; gap: 0; background: var(--paper); border-radius: 6px; }
.form-card .gfield_consent_description { margin: 6px 0 12px; font-size: 0.95rem; color: var(--muted); max-height: none; overflow: visible; border: 0; padding: 0; }
.form-card .ginput_container_consent { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.form-card .ginput_container_consent input[type="checkbox"] { width: 24px; height: 24px; margin: 0; accent-color: var(--violet); flex: none; }
.form-card .ginput_container_consent label { font-size: inherit; line-height: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
/* Submit row: the static .form-actions */
.form-card .gform_footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 26px 0 0; padding: 0; }
.form-card .gform_footer input.gform_button.btn { cursor: pointer; width: auto; min-height: 56px; padding: 0 34px; font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; color: var(--aubergine); background: linear-gradient(90deg, var(--gold-mid), var(--gold) 50%, var(--gold-mid)); border: 1px solid var(--tan); border-radius: var(--pill); box-shadow: inset 0 -2px 0 rgba(55, 20, 97, 0.18); }
.form-card .gform_footer input.gform_button.btn:hover, .form-card .gform_footer input.gform_button.btn:focus { color: var(--aubergine); background: linear-gradient(90deg, var(--gold-mid), var(--gold) 50%, var(--gold-mid)); border-color: var(--tan); }
.form-card .gform_confirmation_message { padding: 18px 20px; border-left: 4px solid var(--gold-mid); background: var(--paper); border-radius: 6px; font-size: 1.0625rem; color: var(--ink); }
@media (max-width: 900px) {
  .form-card .gform_fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form-card .gfield--width-half { grid-column: 1 / -1; }
  .form-card .gform_footer input.gform_button.btn { width: 100%; }
}
