:root { --hh-gutter: clamp(1rem, 3.5vw, 2.5rem); } /* shared side space; also defined in the theme */
/* Shared header and basket across the network. */
.site-header .site-header__bar { display:grid!important; grid-template-columns:minmax(0,1fr) auto auto; align-items:center!important; gap:1.25rem; margin-inline:auto; padding-block:1rem; }
.site-header .site-brand { grid-column:1; grid-row:1; display:flex; align-items:center!important; }
.site-header .site-header__bar .site-search--header { display:block; grid-column:2; grid-row:1; position:static; transform:none; width:250px; margin:0!important; }
.site-header .site-header__bar > .wp-block-navigation { grid-column:1/-1; grid-row:2; justify-content:flex-start; margin:0; width:100%; }
.hh-basket { grid-column:3; grid-row:1; position:relative; color:var(--hh-green); font:600 .9rem var(--wp--preset--font-family--sans); }
.hh-basket summary { display:flex; align-items:center; gap:.45rem; cursor:pointer; padding:.7rem .8rem; border:1px solid var(--hh-line); border-radius:5px; list-style:none; white-space:nowrap; }
.hh-basket summary::-webkit-details-marker { display:none; }
.hh-basket summary:hover,.hh-basket[open] summary { background:#e8e9de; }
.hh-basket summary:focus-visible,.hh-basket a:focus-visible { outline:2px solid var(--hh-green); outline-offset:3px; }
.hh-basket-panel { position:absolute; top:calc(100% + .7rem); right:0; width:min(360px,calc(100vw - 2rem)); padding:1.4rem; background:#fff; border:1px solid var(--hh-line); box-shadow:var(--hh-shadow); border-radius:6px; z-index:120; box-sizing:border-box; color:var(--hh-ink); }
.hh-basket-panel h2 { margin:0 0 1rem; font-size:1.8rem; color:var(--hh-green); }
.hh-basket-panel p { margin:.8rem 0; font-size:.9rem; font-weight:400; }
.hh-basket-items { list-style:none; margin:0; padding:0; max-height:45vh; overflow:auto; }
.hh-basket-items li { padding:.7rem 0; border-bottom:1px solid var(--hh-line); }
.hh-basket-items a { display:flex; gap:.8rem; color:var(--hh-ink); text-decoration:none; align-items:center; }
.hh-basket-items img { width:56px; height:64px; object-fit:contain; flex-shrink:0; }
.hh-basket-items span span { display:block; margin-top:.35rem; font-size:.8rem; font-weight:400; }
.hh-basket-subtotal { font-weight:700!important; }
.hh-basket-actions { display:flex; gap:.6rem; flex-wrap:wrap; }
.hh-basket-actions a { padding:.75rem 1rem; border:1px solid var(--hh-green); border-radius:4px; color:var(--hh-green); text-decoration:none; font-size:.85rem; }
.site-header .hh-basket-actions .hh-basket-checkout { background:var(--hh-green); color:white; }
.hh-basket-actions [hidden] { display:none; }
@media(max-width:900px){
 .site-header .site-header__bar { grid-template-columns:minmax(0,1fr) auto auto; gap:.6rem; }
 .site-header .site-brand__tagline { display:none; }
 .site-header .site-brand__logo-img { max-width:min(15rem,43vw); height:auto; }
 .site-header .site-header__bar .site-search--header { grid-column:1/-1; grid-row:2; width:100%; }
 .site-header .site-header__bar > .wp-block-navigation { grid-column:3; grid-row:1; width:auto; }
 .hh-basket { grid-column:2; }
 .hh-basket summary { padding:.55rem .45rem; font-size:.8rem; gap:.25rem; }
 .site-header .site-header__bar { position:relative; }
 .site-header .hh-basket { position:static; }
 .hh-basket-panel { left:0; right:0; width:auto; top:calc(100% + .25rem); } /* span the header width, not the icon */
 .site-header .wp-block-navigation__responsive-container:not(.is-menu-open):not(.hidden-by-default) { display:none; }
 .site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display:flex; }
}
@media(min-width:600px) and (max-width:900px){ .hh-basket-panel { left:auto; width:360px; } }
/* Pathways use the existing page hierarchy and native WordPress dropdowns. */
.hh-pathway-hub { margin:2rem 0; }
.hh-pathway-hub h2 { margin:0 0 1rem; }
.hh-pathway-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; list-style:none; padding:0!important; margin:0!important; }
.hh-pathway-links li { margin:0; }
.hh-pathway-links a { display:block; height:100%; box-sizing:border-box; padding:1rem 1.2rem; border:1px solid var(--hh-line); border-radius:5px; background:var(--hh-paper); color:var(--hh-green); font-weight:600; text-decoration:none; }
.hh-pathway-links a:hover,.hh-pathway-links a:focus-visible { background:#e6ebdf; text-decoration:underline; }
.hh-home > .wp-block-post-content > .hh-pathway-hub { max-width:1160px; padding:2rem var(--hh-gutter); margin:0 auto; }
.hh-section-content .knowledge-feature-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.site-header .wp-block-navigation { font-size:.875rem; gap:1.75rem; }
.site-header .wp-block-navigation__container { gap:.9rem 1.75rem; justify-content:flex-start; }
@media(max-width:900px){ .hh-pathway-links,.hh-section-content .knowledge-feature-grid { grid-template-columns:1fr; } .site-header .wp-block-navigation .wp-block-navigation__submenu-container { min-width:0; box-shadow:none; border:0; } }

@media(min-width:901px){ .site-header .site-header__bar > .wp-block-navigation { padding-block:.35rem; } }
/* Survey quote button: end of the nav row on desktop, beside search on mobile. */
.site-header .site-header__bar > .wp-block-navigation { grid-column:1/3; }
.site-header .site-header__bar > .site-header__quote { grid-column:3; grid-row:2; justify-self:end; margin:0!important; }
@media(max-width:900px){
 .site-header .site-header__bar > .wp-block-navigation { grid-column:3; }
 .site-header .site-header__bar .site-search--header { grid-column:1; }
 .site-header .site-header__bar > .site-header__quote { grid-column:2/4; grid-row:2; justify-self:stretch; }
 .site-header__quote a { box-sizing:border-box; width:100%; text-align:center; }
 .site-header__quote-long { display:none; }
}

/* Header dropdowns (desktop): white panel, soft shadow, set slightly below the menu bar.
   Surveys and Damp use wide "mega" panels (className hh-mega) with a feature item,
   described items in two columns and a footer row (hh-menu-footer). */
@media (min-width:600px) {
 .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container { top:calc(100% + 12px) !important; min-width:15rem !important; padding:.5rem; border:0 !important; border-radius:10px; background:#fff; box-shadow:0 20px 50px rgba(31,39,34,.16), 0 2px 6px rgba(31,39,34,.06); }
 .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container::before { content:""; position:absolute; left:0; right:0; top:-14px; height:14px; }
 .site-header .wp-block-navigation__submenu-container .wp-block-navigation-item { width:100%; }
 .site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display:block !important; width:100%; box-sizing:border-box; padding:.55rem .75rem !important; border-radius:6px; color:var(--hh-green); font-weight:600; line-height:1.3; text-decoration:none !important; white-space:normal; }
 .site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
 .site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible { background:var(--hh-paper); }
 .site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__description { display:block; margin-top:.2rem; color:var(--hh-muted); font-size:.8rem; font-weight:400; line-height:1.35; }

 .site-header .hh-mega > .wp-block-navigation__submenu-container { display:grid !important; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.1rem .4rem; width:min(640px, calc(100vw - 2rem)) !important; padding:.85rem; }
 .site-header .hh-mega > .wp-block-navigation__submenu-container > li { grid-column:span 3; margin:0 !important; align-self:start; }
 .site-header .hh-mega .hh-menu-feature { grid-column:1 / -1 !important; margin-bottom:.35rem; }
 .site-header .hh-mega .hh-menu-feature > .wp-block-navigation-item__content { padding:.8rem 1rem !important; background:var(--hh-paper); border-left:3px solid var(--hh-gold); border-radius:4px 8px 8px 4px; font-size:1rem; }
 .site-header .hh-mega .hh-menu-feature > .wp-block-navigation-item__content:hover { background:#ebe7da; }
 .site-header .hh-mega .hh-menu-footer { grid-column:span 2 !important; margin-top:.4rem; padding-top:.45rem; border-top:1px solid var(--hh-line); }
 .site-header .hh-mega li:not(.hh-menu-footer) + .hh-menu-footer { grid-column:1 / span 2 !important; } /* footer row always starts on a new line */
 .site-header .hh-mega .hh-menu-footer > .wp-block-navigation-item__content { padding:.4rem .75rem !important; color:var(--hh-moss); font-size:.82rem; }
}
/* Overlay (phone) menu: plain list, no descriptions. */
.site-header .is-menu-open .wp-block-navigation-item__description { display:none; }
.site-header .is-menu-open .hh-mega .wp-block-navigation__submenu-container { display:flex !important; width:auto; }
/* Active menu states (classes added in heritage-network.php). */
.site-header .wp-block-navigation__container > .hh-nav-active > .wp-block-navigation-item__content { color:var(--hh-green) !important; text-decoration:underline; text-decoration-color:var(--hh-gold); text-decoration-thickness:2px; text-underline-offset:.6em; }
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content[aria-current="page"] { background:var(--hh-paper); box-shadow:inset 3px 0 0 var(--hh-gold); }
.site-header .is-menu-open .wp-block-navigation-item__content[aria-current="page"] { text-decoration:underline; text-decoration-color:var(--hh-gold); text-decoration-thickness:2px; text-underline-offset:.35em; }
/* Tagline: one line, centred with the logo. */
.site-header .site-brand { align-items:center !important; }
/* Styled like the logo's lettering; nudged down so it centres on "HERITAGE HOUSE" (the
   letters sit in the lower half of the logo image, below the top of the tree). */
.site-header .site-brand__tagline { max-width:none; white-space:nowrap; align-self:center; margin:0; position:relative; margin-left:.5rem !important; padding:.2rem 0 .2rem 1.25rem; border-left:0; color:var(--hh-moss); font-size:.68rem; font-weight:600; letter-spacing:.14em; line-height:1.2; text-transform:uppercase; transform:translateY(calc(.58rem + 2px)); }
/* Divider: exactly the height of the logo's capitals (48% of the 37.2px drawn logo), centred on
   them. It sits inside the tagline, so the tagline's 2px optical nudge is taken back off. */
.site-header .site-brand__tagline::before { content:""; position:absolute; left:0; top:calc(50% - 1px); width:1px; height:1.12rem; background:var(--hh-gold); transform:translateY(-50%); }
@media (max-width:1100px) { .site-header .site-brand__tagline { display:none; } } /* no room beside the search box */

/* ---------- Mobile header and menu (≤900px; the full menu doesn't fit on one line below that) ---------- */
.hh-mm-open, .hh-mm { display:none; }
@media (max-width:900px) {
 .site-header .site-header__bar { grid-template-columns:minmax(0,1fr) auto auto !important; gap:.5rem; padding-block:.7rem; min-height:0; }
 .site-header .site-header__bar > .wp-block-navigation,
 .site-header .site-header__bar .site-search--header,
 .site-header .site-header__bar > .site-header__quote { display:none !important; }
 .site-header .site-brand__logo-img { max-width:min(13rem,52vw); height:auto; }
 .hh-basket { grid-column:2; grid-row:1; }
 .hh-basket summary { position:relative; padding:.5rem; border:0; font-size:0; gap:0; }
 .hh-basket summary > span { display:none; }
 .hh-basket summary svg { width:24px; height:24px; }
 .hh-basket[data-count]:not([data-count="0"]) summary::after { content:attr(data-count); position:absolute; top:.1rem; right:.05rem; min-width:1.05rem; height:1.05rem; padding:0 .2rem; box-sizing:border-box; border-radius:999px; background:var(--hh-gold); color:var(--hh-ink); font:700 .65rem/1.05rem var(--wp--preset--font-family--sans); text-align:center; }
 .hh-mm-open { grid-column:3; grid-row:1; display:inline-flex; align-items:center; gap:.5rem; padding:.55rem .85rem; border:1px solid var(--hh-green); border-radius:6px; background:var(--hh-green); color:#fff; font:600 .9rem/1 var(--wp--preset--font-family--sans); cursor:pointer; }
 .hh-mm-open__icon, .hh-mm-open__icon::before, .hh-mm-open__icon::after { display:block; width:16px; height:2px; border-radius:2px; background:currentColor; }
 .hh-mm-open__icon { position:relative; }
 .hh-mm-open__icon::before, .hh-mm-open__icon::after { content:""; position:absolute; left:0; }
 .hh-mm-open__icon::before { top:-5px; } .hh-mm-open__icon::after { top:5px; }

 .hh-mm[open] { display:flex; flex-direction:column; position:fixed; inset:0 0 0 auto; width:min(26rem,100vw); height:100dvh; max-width:none; max-height:none; margin:0; padding:0 0 1.5rem; border:0; background:#fff; color:var(--hh-ink); overflow-y:auto; overscroll-behavior:contain; font-family:var(--wp--preset--font-family--sans); animation:hh-mm-in .22s ease-out; }
 .hh-mm::backdrop { background:rgba(15,20,17,.55); }
 @keyframes hh-mm-in { from { transform:translateX(30px); opacity:0; } to { transform:none; opacity:1; } }
 .hh-mm__top { display:flex; align-items:center; justify-content:space-between; padding:.9rem 1rem; border-bottom:1px solid var(--hh-line); background:var(--hh-paper); position:sticky; top:0; z-index:1; }
 .hh-mm__logo img { display:block; width:170px; height:auto; }
 .hh-mm-close { display:flex; align-items:center; justify-content:center; width:2.5rem; height:2.5rem; border:0; border-radius:50%; background:transparent; color:var(--hh-green); font-size:2rem; line-height:1; cursor:pointer; }
 .hh-mm-close:hover, .hh-mm-close:focus-visible { background:#e8e9de; }
 .hh-mm__search { display:flex; margin:1rem 1rem .75rem; }
 .hh-mm__search input { flex:1; min-width:0; padding:.7rem .85rem; border:1px solid var(--hh-line); border-right:0; border-radius:6px 0 0 6px; font:inherit; font-size:1rem; }
 .hh-mm__search button { padding:0 1rem; border:0; border-radius:0 6px 6px 0; background:var(--hh-gold); color:var(--hh-ink); font:700 .9rem var(--wp--preset--font-family--sans); }
 .hh-mm__actions { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; margin:0 1rem 1rem; }
 .hh-mm__actions a { display:flex; align-items:center; justify-content:center; min-height:2.9rem; padding:0 .6rem; border-radius:6px; font-weight:700; font-size:.9rem; text-align:center; text-decoration:none; }
 .hh-mm__quote { background:var(--hh-gold); color:var(--hh-ink) !important; }
 .hh-mm__call { border:1px solid var(--hh-green); color:var(--hh-green) !important; }
 .hh-mm__nav ul { list-style:none; margin:0; padding:0; }
 .hh-mm__nav > ul { border-top:1px solid var(--hh-line); }
 .hh-mm__item { border-bottom:1px solid var(--hh-line); }
 .hh-mm__item > a, .hh-mm__item summary { display:flex; align-items:center; justify-content:space-between; padding:1rem 1.1rem; color:var(--hh-green) !important; font-family:var(--wp--preset--font-family--serif); font-size:1.3rem; font-weight:700; text-decoration:none; cursor:pointer; list-style:none; }
 .hh-mm__item summary::-webkit-details-marker { display:none; }
 .hh-mm__item summary::after { content:""; width:.55rem; height:.55rem; border-right:2px solid var(--hh-gold); border-bottom:2px solid var(--hh-gold); transform:rotate(45deg) translate(-2px,-2px); transition:transform .15s; }
 .hh-mm__item details[open] > summary::after { transform:rotate(-135deg) translate(-2px,-2px); }
 .hh-mm__item details ul { padding:0 1.1rem .8rem; }
 .hh-mm__item details li a { display:block; padding:.6rem .8rem; border-radius:6px; color:var(--hh-ink) !important; font-size:.98rem; text-decoration:none; }
 .hh-mm__item details li:first-child a { color:var(--hh-moss) !important; font-weight:700; }
 .hh-mm__nav a[aria-current="page"] { background:var(--hh-paper); box-shadow:inset 3px 0 0 var(--hh-gold); font-weight:700; }
 .hh-mm__contact { margin:1.25rem 1.1rem 0; font-size:.9rem; }
 .hh-mm__contact a { color:var(--hh-moss) !important; }
 html.hh-mm-is-open { overflow:hidden; }
}

/* ---------- Desktop header, right-hand side: phone, search, basket and quote on one 40px system ---------- */
.site-header__phone { display:none; }
@media (min-width:901px) {
 .site-header .site-header__bar { grid-template-columns:minmax(0,1fr) auto auto auto !important; column-gap:1.25rem !important; }
 .site-header .site-header__bar > .wp-block-navigation { grid-column:1 / 3 !important; }
 .site-header .site-header__bar > .site-header__quote { grid-column:3 / 5 !important; justify-self:end; } /* spans search + basket so it doesn't widen the basket column */
 .site-header .hh-basket { grid-column:4; grid-row:1; justify-self:end; }
 .site-header .site-header__bar .site-search--header { grid-column:3; grid-row:1; width:220px !important; }

 /* Phone */
 .site-header__phone { grid-column:2; grid-row:1; display:flex; flex-direction:column; align-items:flex-end; gap:.1rem; padding-right:1.25rem; border-right:1px solid var(--hh-line); color:var(--hh-green) !important; text-decoration:none; line-height:1.1; }
 .site-header__phone-label { font-size:.68rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--hh-moss); }
 .site-header__phone-number { font-size:1.02rem; font-weight:700; }
 .site-header__phone:hover .site-header__phone-number, .site-header__phone:focus-visible .site-header__phone-number { text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--hh-gold); }

 /* Search: a slim rounded field with the icon inside */
 .site-header .site-search--header .wp-block-search__inside-wrapper { height:40px; padding:0 !important; border:1px solid var(--hh-line) !important; border-radius:999px !important; background:#fff; box-shadow:none !important; overflow:hidden; transition:border-color .15s, box-shadow .15s; }
 .site-header .site-search--header .wp-block-search__inside-wrapper:focus-within { border-color:var(--hh-moss) !important; box-shadow:0 0 0 3px rgba(86,107,66,.18) !important; }
 .site-header .site-search--header .wp-block-search__input { height:38px !important; min-height:0 !important; padding:0 .25rem 0 1rem !important; border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important; font-size:.9rem !important; outline:none; }
 .site-header .site-search--header .wp-block-search__button { width:40px !important; height:38px !important; min-height:0 !important; margin:0 !important; padding:0 !important; border:0 !important; border-radius:0 !important; background:transparent !important; color:var(--hh-green) !important; }
 .site-header .site-search--header .wp-block-search__button:hover { color:var(--hh-moss) !important; }
 .site-header .site-search--header .wp-block-search__button svg { width:20px; height:20px; fill:currentColor; }

 /* Basket: icon with a count badge */
 .site-header .hh-basket summary { position:relative; width:40px; height:40px; padding:0; justify-content:center; border:0; border-radius:50%; font-size:0; gap:0; }
 .site-header .hh-basket summary > span { display:none; }
 .site-header .hh-basket summary svg { width:24px; height:24px; }
 .site-header .hh-basket summary:hover, .site-header .hh-basket[open] summary { background:#e8e9de; }
 .site-header .hh-basket[data-count]:not([data-count="0"]) summary::after { content:attr(data-count); position:absolute; top:1px; right:-1px; min-width:1.1rem; height:1.1rem; padding:0 .25rem; box-sizing:border-box; border-radius:999px; background:var(--hh-gold); color:var(--hh-ink); font:700 .66rem/1.1rem var(--wp--preset--font-family--sans); text-align:center; }

 /* Quote button: same 40px height and radius as the other controls */
 .site-header__quote a { line-height:40px !important; padding:0 1.1rem !important; border-radius:6px !important; }
}
/* Below 1200px there isn't room for the phone link beside the search. */
@media (min-width:901px) and (max-width:1200px) { .site-header__phone { display:none; } .site-header .site-header__bar { grid-template-columns:minmax(0,1fr) 0 auto auto !important; column-gap:1rem !important; } }
/* Mid widths: tighten the menu so "Contact" doesn't wrap onto a second line. */
@media (min-width:901px) and (max-width:1240px) { .site-header .wp-block-navigation__container { column-gap:clamp(.75rem, 3.4vw - 1.2rem, 1.75rem); } }
@media (min-width:901px) and (max-width:1100px) { .site-header .wp-block-navigation__container { column-gap:clamp(.6rem, 2.6vw - 1rem, 1rem); } .site-header .wp-block-navigation__container > li > .wp-block-navigation-item__content { font-size:.82rem; } }
/* Below 1024px there isn't room for the search box beside the menu; hide it so the menu stays on one line. */
@media (min-width:901px) and (max-width:1100px) { .site-header .site-header__bar .site-search--header { display:none !important; } .site-header .site-header__bar > .wp-block-navigation { grid-column:1 / 4 !important; } .site-header .site-header__bar > .site-header__quote { grid-column:4 !important; } }
/* Eight menu items (Videos added): a little tighter at mid widths so the menu stays on one line. */
@media (min-width:901px) and (max-width:1300px) { .site-header .wp-block-navigation__container { column-gap:clamp(.55rem, 2.4vw - 1rem, 1.5rem) !important; } .site-header .wp-block-navigation__container > li > .wp-block-navigation-item__content { font-size:.84rem; } }
@media (min-width:901px) and (max-width:1100px) { .site-header .wp-block-navigation__container > li > .wp-block-navigation-item__content { font-size:.8rem; } }
@media (min-width:901px) and (max-width:1000px) { .site-header .wp-block-navigation__container { column-gap:.5rem !important; } .site-header .wp-block-navigation__container > li > .wp-block-navigation-item__content { font-size:.75rem; } }
