/*
Theme Name: Assett
Theme URI: https://assett.net.au/
Author: Assett Professional Services
Description: Custom theme for Assett Professional Services.
Version: 1.0.9
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: assett
*/

:root {
	--a-accent: #be1e2d;
	--a-accent-dark: #920a0a;
	--a-ink: #444;
	--a-text: #676767;
	--a-bg: #f8f8f8;
	--a-line: #ddd;
	--a-dark: #1f1f1f;
	--a-gutter: clamp(20px, 7vw, 90px);
	--a-width: 1245px;
	--a-condensed: "Open Sans Condensed", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--a-bg); color: var(--a-text); font: 400 14px/1.75 "Open Sans", Arial, sans-serif; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--a-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; color: var(--a-ink); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
h1 { color: var(--a-accent); font-size: 45px; line-height: 1.2; letter-spacing: -.02em; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
h1 small, h2 small, h3 small, h4 small, h5 small { color: var(--a-text); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.has-accent-text { color: var(--a-accent); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.a-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 200; width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; background: #fff; }
.a-container { width: 100%; max-width: calc(var(--a-width) + 2 * var(--a-gutter)); margin-inline: auto; padding-inline: var(--a-gutter); }

/* Header */
.a-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #e4e4e4; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.a-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 120px; transition: min-height .2s; }
.a-header.is-small .a-header__inner { min-height: 76px; }
.a-logo img { display: block; width: auto; height: 65px; transition: height .2s; }
.a-header.is-small .a-logo img { height: 46px; }
.a-nav { display: flex; align-items: center; }
.a-nav ul { margin: 0; padding: 0; list-style: none; }
.a-nav > ul { display: flex; align-items: center; }
.a-nav li { position: relative; }
.a-nav > ul > li > a { display: block; padding: 12px 11px; color: #888; font: 700 17px/1.4 var(--a-condensed); text-transform: uppercase; white-space: nowrap; }
.a-nav > ul > li > a:hover,
.a-nav > ul > li:hover > a,
.a-nav > ul > .current-menu-item > a,
.a-nav > ul > .current-menu-ancestor > a,
.a-nav > ul > .current_page_parent > a { color: var(--a-accent); text-decoration: none; }
.a-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 240px; padding: 6px 0; background: #1f1f1f; opacity: 0; visibility: hidden; transition: opacity .15s; }
.a-nav .sub-menu .sub-menu { top: -6px; left: 100%; }
.a-nav li:hover > .sub-menu, .a-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.a-nav .sub-menu a { display: block; padding: 7px 18px; color: #ccc; font-size: 13px; line-height: 1.6; text-transform: uppercase; }
.a-nav .sub-menu a:hover, .a-nav .sub-menu .current-menu-item > a { background: var(--a-accent); color: #fff; text-decoration: none; }
.a-nav .menu-item-has-children > .sub-menu .menu-item-has-children > a::after { content: "\f105"; float: right; font: 900 12px/1.8 "Font Awesome 6 Free"; }
.a-search-toggle, .a-nav-toggle { padding: 8px 10px; border: 0; background: none; color: #888; font-size: 16px; cursor: pointer; }
.a-search-toggle { margin-left: 8px; border-left: 1px solid var(--a-line); padding-left: 16px; }
.a-search-toggle:hover, .a-nav-toggle:hover { color: var(--a-accent); }
.a-nav-toggle { display: none; font-size: 22px; }
.a-header-search { padding: 14px 0; border-top: 1px solid #eee; background: #fff; }

/* Page furniture */
.a-page { padding-bottom: 30px; }
.a-banner { display: flex; align-items: center; min-height: 300px; margin-bottom: 30px; background: #000 center / cover no-repeat; }
.a-banner h1 { margin: 0; color: #fff; font-size: 48px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.entry-content { padding-top: 30px; }
.a-light .a-icon--circle { color: #333; }
.home .entry-content { padding-top: 0; }
.entry-content > :first-child.alignfull { margin-top: -30px; }
.home .entry-content > :first-child.alignfull { margin-top: 0; }
.a-page:has(.a-banner) .entry-content { padding-top: 0; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 24px; }
.a-anchor { display: block; }

/* Blocks */
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
/* Space between a full-width section and loose content next to it (full-width sections have no margins of their own).
   Applied to the neighbour, not the section, so a section's own margin settings in the editor can't cancel it. */
.entry-content > .alignfull + :not(.alignfull, .a-anchor) { margin-top: var(--a-sec-gap, 50px); }
.entry-content > :not(.alignfull, .a-anchor):has(+ .alignfull) { margin-bottom: var(--a-sec-gap, 50px); }
.wp-block-columns { gap: 30px; margin-bottom: 1.5em; }
.wp-block-column.has-background { padding: 22px; }
.wp-block-image { margin: 0 0 1.5em; }
/* Breathing room between a heading and an image or video directly under it. */
.wp-block-heading:has(+ .wp-block-image, + .wp-block-embed, + .wp-block-video, + .wp-block-gallery) { margin-bottom: 20px; }
.wp-block-image img { display: block; }
.wp-block-image.aligncenter { margin-inline: auto; text-align: center; }
.wp-block-image.aligncenter img { margin-inline: auto; }
.a-sec.alignfull { padding: 60px max(var(--a-gutter), calc(50vw - var(--a-width) / 2)); }
.a-sec > :last-child { margin-bottom: 0; }
/* Full-width CTA bar: heading and button on one line on desktop, stacked on mobile. */
.a-sec.a-cta-bar.alignfull { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; padding-block: 70px; }
.a-cta-bar > * { margin: 0; }
.a-cta-bar .wp-block-heading { line-height: 1.4; letter-spacing: .01em; }
.a-light, .a-light p, .a-light li, .a-light h1, .a-light h2, .a-light h3, .a-light h4, .a-light h5, .a-light h6 { color: #fff; }
.a-light a:not(.wp-block-button__link) { color: #fff; text-decoration: underline; }
.a-flush-sec.alignfull { padding: 0; }
.a-flush-sec .wp-block-columns { gap: 0; margin: 0; }
.a-flush-sec .wp-block-column { display: flex; flex-direction: column; padding: 50px; }
/* Push each card's buttons to the bottom so they line up across columns. */
.a-flush-sec .wp-block-column > .wp-block-buttons:last-child { margin-top: auto; padding-top: 12px; }
.a-box { padding: 22px; }
.a-iconbox { margin-bottom: 1.5em; }
.a-iconbox:not(.a-iconbox--stacked):has(> .a-icon:not(.has-text-align-center)) { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
.a-iconbox:not(.a-iconbox--stacked):has(> .a-icon:not(.has-text-align-center)) > * { grid-column: 2; }
/* Icon and heading share the first row and are centred on each other. */
.a-iconbox:not(.a-iconbox--stacked):has(> .a-icon:not(.has-text-align-center)) > .a-icon:first-child { grid-column: 1; grid-row: 1; align-self: center; margin-bottom: 0; text-align: center; }
.a-iconbox:not(.a-iconbox--stacked):has(> .a-icon:not(.has-text-align-center)) > .a-icon:first-child + .wp-block-heading { grid-row: 1; align-self: center; margin: 0; }
.a-iconbox:not(.a-iconbox--stacked):has(> .a-icon:not(.has-text-align-center)) > .a-icon:first-child + .wp-block-heading + * { margin-top: 12px; }
.a-iconbox h2, .a-iconbox h3, .a-iconbox h4 { font-weight: 600; }
.a-iconbox a { color: var(--a-accent); }
.a-icon--circle { display: grid; width: 90px; height: 90px; margin: 0 auto 26px; place-items: center; border-radius: 50%; background: #eee; color: #333; font-size: 28px; }
.a-icon { margin-bottom: 12px; color: #818a91; font-size: 50px; line-height: 1.1; }
.a-icon a { color: inherit; }
.a-iconbox > .a-icon:first-child { color: var(--a-accent); font-size: 32px; line-height: 1; }
.a-iconbox--stacked { margin-bottom: 0; }
.a-icon--framed { margin-bottom: 15px; }
.a-iconbox > .a-icon--framed:first-child { color: #818a91; font-size: 50px; }
.a-icon--framed > a, .a-icon--framed > span, .a-icon--stacked > a, .a-icon--stacked > span { display: inline-grid; width: 100px; height: 100px; place-items: center; border-radius: 50%; }
.a-icon--framed > a, .a-icon--framed > span { width: 106px; height: 106px; border: 3px solid currentColor; color: inherit; }
.a-icon--stacked { margin-bottom: 15px; }
.a-icon--stacked + .wp-block-heading a { color: inherit; }
.a-icon--stacked > a, .a-icon--stacked > span { background: var(--a-accent); color: #fff; }
.a-icon--stacked > a:hover { background: var(--a-accent-dark); color: #fff; text-decoration: none; }
.a-icon--framed a:hover { color: var(--a-accent); text-decoration: none; }
.a-iconbox--stacked h3 { margin-bottom: 7px; }
.a-iconbox--stacked h3 a { color: var(--a-ink); }
.a-iconbox--stacked h3 a:hover { color: var(--a-accent); text-decoration: none; }
.a-iconbox--stacked p { margin-bottom: 0; }
.a-iconbox--stacked u { display: block; }
.a-iconbox--stacked h3 { font-size: 19px; }
.a-callout { padding: 20px; background: var(--a-accent-dark); color: #fff; }
.wp-block-button.a-btn-plain .wp-block-button__link { border-color: transparent; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.wp-block-columns .a-iconbox:has(> .a-icon:first-child) { position: relative; }
.a-milestone strong { display: block; color: var(--a-accent); font-size: 42px; line-height: 1.2; }
.a-progress .a-bar { height: 8px; margin-bottom: 14px; background: #e6e6e6; }
.a-progress .a-bar span { display: block; height: 100%; background: var(--a-accent); }
.a-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 1.5em; }
.a-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.a-map { margin-bottom: 1.5em; }
.a-map iframe { display: block; width: 100%; height: 300px; border: 0; }
.a-table { overflow-x: auto; margin-bottom: 1.5em; }
.a-table table { width: 100%; border-collapse: collapse; }
.a-table td, .a-table th { padding: 8px 10px; border: 1px solid var(--a-line); text-align: left; }
.wp-block-separator { margin: 2em 0; border: 0; border-top: 1px solid var(--a-line); }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.5em; }
.has-text-align-center + .wp-block-buttons { justify-content: center; }
.wp-block-button__width-100 { width: 100%; }
.wp-block-button__width-100 .wp-block-button__link { display: block; text-align: center; }
.wp-block-button__link, .a-btn, .a-more { display: inline-block; border-radius: 2px; background: var(--a-accent); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.wp-block-button__link, .a-btn { padding: 13px 22px; border: 2px solid var(--a-accent); }
.wp-block-button__link:hover, .a-btn:hover { background: var(--a-accent-dark); border-color: var(--a-accent-dark); color: #fff; text-decoration: none; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: var(--a-accent); }
.a-light .wp-block-button__link, .a-light .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: #fff; color: #fff; }
.a-light .wp-block-button__link:hover { background: #fff; color: var(--a-ink); }
.a-more { padding: 5px 12px; background: var(--a-ink); font-weight: 400; font-size: 12px; letter-spacing: 0; text-transform: none; }
.a-more:hover { background: var(--a-accent); color: #fff; text-decoration: none; }

/* Social icons */
.a-social { display: flex; gap: 8px; margin: 20px 0; }
.a-social--right { justify-content: flex-end; }
.a-social--center { justify-content: center; }
.a-social a { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #fff; font-size: 18px; }
.a-social a:hover { opacity: .85; }
.a-social__facebook { background: #3b5998; }
.a-social__twitter { background: #1da1f2; }
.a-social__linkedin { background: #0077b5; }
.a-social__instagram { background: #262626; }

/* Slider */
.a-slider { position: relative; height: clamp(240px, 29vw, 500px); overflow: hidden; background: #333; }
.a-slider > .a-slide { position: absolute; inset: 0; width: 100%; min-height: 0; height: 100%; margin: 0; padding: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.a-slider > .a-slide:first-child, .a-slider > .a-slide.is-active { opacity: 1; visibility: visible; }
.a-slider:has(.is-active) > .a-slide:not(.is-active) { opacity: 0; visibility: hidden; }
.a-slide .wp-block-cover__inner-container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; max-width: calc(var(--a-width) + 2 * var(--a-gutter)); margin-inline: auto; padding-inline: var(--a-gutter); }
.a-slide.a-right .wp-block-cover__inner-container { align-items: flex-end; }
.a-slide .wp-block-image { margin-bottom: 10px; }
.a-slider + .wp-block-heading { margin-top: 30px; }
.a-slide-text { margin: 0; color: #fff; font-size: 24px; line-height: 1.6; }
.a-slide-text a { color: #fff; }
.a-slide-text a::after { content: ""; position: absolute; inset: 0; }
.a-slide-text, .a-slide-text a { text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.a-slider__prev, .a-slider__next { position: absolute; top: 50%; z-index: 3; width: 44px; height: 64px; margin-top: -32px; border: 0; background: rgba(0,0,0,.25); color: #fff; font-size: 26px; cursor: pointer; }
.a-slider__prev:hover, .a-slider__next:hover { background: var(--a-accent); }
.a-slider__prev { left: 0; }
.a-slider__next { right: 0; }
.a-slider__dots { position: absolute; bottom: 18px; left: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; width: 100%; }
.a-slider__dots button { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.a-slider__dots .is-active { background: #fff; }

/* Forms */
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=search], textarea, select { width: 100%; padding: 10px; border: 1px solid #e0e0e0; border-radius: 0; background: #eee; color: #444; font: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--a-accent); outline-offset: 1px; background: #fff; }
textarea { height: 150px; }
.wpcf7-form p { margin-bottom: .9em; }
.wpcf7-form br { display: none; }
.wpcf7-form-control-wrap { display: block; }
input[type=submit], button[type=submit] { padding: 11px 34px; border: 0; background: #333; color: #fff; font: 700 15px/1.5 Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
input[type=submit]:hover, button[type=submit]:hover { background: var(--a-accent); }
.a-form-red { padding: 12px; background: var(--a-accent-dark); color: #fff; }
.a-form-red h2 { color: #fff; font-size: 22px; text-align: center; }
.a-form-red p { color: #fff; }
.a-form-red input:not([type=submit]), .a-form-red textarea { background: #eee; }
.a-form-red input[type=submit]:hover { background: #000; }
.wpcf7 .wpcf7-list-item { display: block; margin: 0; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 12px; }
.a-form-red .wpcf7-not-valid-tip { color: #fff; }
.wpcf7 form .wpcf7-response-output { margin: 1em 0; padding: 8px 12px; }
.a-search { display: flex; }
.a-search input { flex: 1; min-width: 0; }
.a-search button { padding: 8px 12px; font-size: 14px; }

/* Blog */
.a-listing { padding-block: 40px; }
.a-listing__title { margin-bottom: 30px; font-size: 32px; }
.a-listing__posts { max-width: 760px; }
.a-card { display: flex; gap: 22px; margin-bottom: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--a-line); }
.a-card__date { flex: 0 0 70px; padding-right: 18px; text-align: center; border-right: 1px solid var(--a-line); color: var(--a-text); line-height: 1.1; }
.a-card__date span { display: block; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.a-card__date strong { display: block; font-size: 26px; font-weight: 700; }
.a-card__body { flex: 1; min-width: 0; }
.a-card h2 { margin-bottom: 4px; font-size: 24px; }
.a-card h2 a { color: var(--a-accent); }
.a-meta { display: flex; flex-wrap: wrap; margin-bottom: 12px; font-size: 12px; }
.a-meta span + span { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--a-line); }
.a-meta a { color: inherit; }
.pagination .nav-links { display: flex; gap: 6px; }
.pagination .page-numbers { display: inline-grid; min-width: 30px; height: 30px; padding-inline: 8px; place-items: center; border-radius: 2px; background: #e6e6e6; color: var(--a-ink); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--a-ink); color: #fff; text-decoration: none; }
.a-single { padding-block: 40px; }
.a-single__head { margin-bottom: 30px; border-bottom: 1px solid var(--a-line); padding-bottom: 14px; }
.a-single__head h1 { margin-bottom: 8px; font-size: 28px; }
.a-with-sidebar { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 40px; }
.a-with-sidebar .entry-content { padding-top: 0; }
.a-with-sidebar .alignfull { width: auto; max-width: none; margin-inline: 0; }
.a-with-sidebar .a-sec.alignfull { padding: 22px; }
.a-404 { padding-block: 70px; }
.a-404 .a-search { max-width: 460px; }

/* Call to action and footer */
.a-cta { position: relative; padding: 42px 0; background: #eae9e7; }
.a-cta::before { content: ""; position: absolute; top: -12px; left: 50%; border: 12px solid transparent; border-top: 0; border-bottom-color: #eae9e7; transform: translateX(-50%); }
.a-cta__inner { display: flex; align-items: center; justify-content: center; gap: 28px; }
.a-cta .a-container { max-width: none; padding-inline: 20px; }
.a-cta span { color: #4b4b4b; font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -.03em; }
.a-cta .a-btn { flex: none; }
.a-footer { background: var(--a-dark); color: #ccc; }
.a-footer__widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-block: 55px; }
.a-footer .widget { margin-bottom: 24px; }
.a-footer .widget-title { margin-bottom: 18px; color: #777; font-size: 12px; font-weight: 700; line-height: 2; letter-spacing: 2px; text-transform: uppercase; }
.a-footer a { color: #ccc; }
.a-footer a:hover { color: #fff; }
.a-footer strong { color: #eee; font-weight: 600; }
.a-footer ul { margin: 0; padding: 0; list-style: none; }
.a-footer li { margin-bottom: 10px; }
.a-footer input { background: #eee; }
.a-footer button[type=submit] { margin-top: 8px; background: #333; }
.a-footer__copy { padding-block: 22px; background: #181818; color: #777; font-size: 12px; }
.a-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; width: 38px; height: 38px; place-items: center; background: rgba(0,0,0,.45); color: #fff; opacity: 0; visibility: hidden; transition: opacity .2s; }
.a-to-top.is-visible { opacity: 1; visibility: visible; }
.a-to-top:hover { background: var(--a-accent); color: #fff; }

@media (max-width: 1080px) {
	.a-nav-toggle { display: block; }
	.a-header__inner { min-height: 84px; flex-wrap: wrap; }
	.a-header.is-small .a-header__inner { min-height: 72px; }
	.a-logo img { height: 50px; }
	.a-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; max-height: calc(100vh - 90px); overflow-y: auto; padding-bottom: 12px; }
	.a-nav.is-open { display: flex; }
	.a-nav > ul { flex-direction: column; align-items: stretch; }
	.a-nav > ul > li > a { padding: 9px 0; }
	.a-nav .sub-menu, .a-nav .sub-menu .sub-menu { position: static; min-width: 0; padding: 0 0 0 14px; background: none; opacity: 1; visibility: visible; }
	.a-nav .sub-menu a { padding: 5px 0; color: #777; }
	.a-nav .sub-menu a:hover { background: none; color: var(--a-accent); }
	.a-nav .menu-item-has-children > .sub-menu .menu-item-has-children > a::after { content: none; }
	.a-search-toggle { align-self: flex-start; margin: 6px 0 0; padding-left: 0; border: 0; }
	.a-footer__widgets { grid-template-columns: repeat(2, 1fr); }
	.a-cta__inner { flex-direction: column; text-align: center; }
	.a-with-sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 781px) {
	h1 { font-size: 32px; }
	.a-banner { min-height: 180px; }
	.a-banner h1 { font-size: 32px; }
	.a-slide-text { font-size: 18px; }
	.a-sec.alignfull { padding-block: 40px; }
	.a-flush-sec.alignfull { padding-block: 0; }
	.a-sec.a-cta-bar.alignfull { flex-direction: column; padding-block: 50px; }
	.entry-content { --a-sec-gap: 36px; }
	.a-cta-bar .wp-block-heading { font-size: 22px !important; }
	.a-flush-sec .wp-block-column { padding: 30px var(--a-gutter); }
	.wp-block-column { flex-basis: 100% !important; }
	.a-cta span { font-size: 20px; }
	.a-card { gap: 14px; }
	.a-card__date { flex-basis: 54px; padding-right: 10px; }
}
@media (max-width: 560px) {
	.a-footer__widgets { grid-template-columns: minmax(0, 1fr); }
	.a-map iframe { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.a-slider > .a-slide, .a-nav .sub-menu, .a-logo img, .a-header__inner { transition: none; }
}
