/*
Theme Name:   Hydtec
Theme URI:    https://hydtec.co.uk
Description:  Custom theme for Hydraulic Technical Services Ltd. Reproduces the original Divi design (header, slider, emergency panel, accreditation logos, footer, service-page layouts and contact form) without needing Divi. Includes a one-click tool (Appearance › Hydtec Setup) that rebuilds the old Divi Builder pages as editable blocks.
Version:      2.0.1
Requires at least: 6.0
Requires PHP: 7.4
Author:       Hydtec
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  hydtec
Tags:         custom-logo, custom-menu, featured-images, block-patterns
*/

/* =========================================================================
   Tokens — values measured from the original Divi site
   ========================================================================= */
:root {
	--hy-blue: #0c71c3;
	--hy-red: #e02b20;
	--hy-grey: #d6d6d6;
	--hy-ink: #222222;
	--hy-text: #666666;
	--hy-heading: #333333;
	--hy-footer-accent: #2ea3f2;
	--hy-font: "Open Sans", Arial, sans-serif;
	--hy-row: 80%;
	--hy-row-max: 1080px;
	--hy-header-h: 104px;
	--hy-topbar-h: 31px;
}

/* =========================================================================
   Base typography (Divi defaults)
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--hy-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7em;
	color: var(--hy-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
a { color: var(--hy-blue); text-decoration: none; }
a:hover { opacity: .7; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding-bottom: 10px;
	font-family: var(--hy-font);
	font-weight: 500;
	line-height: 1em;
	color: var(--hy-heading);
}
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
p { margin: 0; padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }
strong { font-weight: 700; }
ul, ol { margin: 0; padding: 0 0 23px 1em; line-height: 26px; }
ul { list-style-type: disc; }
ol { list-style-type: decimal; list-style-position: inside; }
blockquote { margin: 20px 0 30px; padding-left: 20px; border-left: 5px solid var(--hy-blue); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100000; top: 8px; left: 8px;
	background: #fff; padding: 10px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.container { position: relative; width: 80%; max-width: var(--hy-row-max); margin: 0 auto; }

/* =========================================================================
   Buttons (Divi style: transparent, 2px border, 20px text)
   ========================================================================= */
.btn, .wp-block-button__link, .hy-form button[type="submit"] {
	display: inline-block;
	position: relative;
	padding: 6px 20px;
	font: 500 20px/1.7em var(--hy-font);
	color: var(--hy-blue);
	background: transparent;
	border: 2px solid var(--hy-blue);
	border-radius: 3px;
	cursor: pointer;
	text-decoration: none;
	transition: all .2s;
}
.btn:hover, .wp-block-button__link:hover, .hy-form button[type="submit"]:hover {
	opacity: 1;
	background: rgba(0,0,0,.05);
	border-color: transparent;
	color: var(--hy-blue);
}
.btn--light, .hy-bg-blue .wp-block-button__link, .hy-promo .wp-block-button__link, .hy-fw-header .wp-block-button__link {
	color: #fff; border-color: #fff;
}
.btn--light:hover, .hy-bg-blue .wp-block-button__link:hover, .hy-promo .wp-block-button__link:hover, .hy-fw-header .wp-block-button__link:hover {
	background: rgba(255,255,255,.2); border-color: transparent; color: #fff;
}
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-block-buttons.is-content-justification-center, .wp-block-buttons.aligncenter { justify-content: center; }
.wp-block-button { margin: 0; }

/* =========================================================================
   Top bar (31px)
   ========================================================================= */
.topbar {
	background: var(--hy-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 12px;
}
.topbar .container { min-height: var(--hy-topbar-h); display: flex; align-items: center; flex-wrap: wrap; padding: 9px 0 10px; }
.topbar a { color: #fff; }
.topbar__item { margin-right: 13px; display: inline-flex; align-items: center; }
.topbar__item svg { width: 11px; height: 11px; fill: currentColor; margin-right: 4px; }
.topbar__tagline { margin-left: .6em; margin-right: 13px; }

/* =========================================================================
   Header (104px, logo full height, nav right)
   ========================================================================= */
.site-top { position: relative; z-index: 9999; }
@media (min-width: 981px) {
	.site-top { position: fixed; top: 0; left: 0; right: 0; }
	.admin-bar .site-top { top: 32px; }
	body.hy-fixed-nav { padding-top: calc(var(--hy-topbar-h) + var(--hy-header-h)); }
}
.site-header {
	background: #fff;
	box-shadow: 0 1px 0 rgba(0,0,0,.1);
	transition: box-shadow .4s;
}
.site-top.is-scrolled .site-header { box-shadow: 0 0 7px rgba(0,0,0,.1); }
.site-header .container { display: flex; align-items: stretch; justify-content: space-between; height: var(--hy-header-h); }
.site-branding { display: flex; align-items: center; height: 100%; }
.site-branding a { display: flex; align-items: center; height: 100%; }
.site-branding img, .custom-logo { max-height: 100%; height: 100%; width: auto; }
.site-title { margin: 0; padding: 0; font-size: 22px; font-weight: 700; }
.site-title a { color: var(--hy-red); }

.main-nav { padding-top: 45px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; line-height: 1; }
.main-nav > ul { display: flex; }
.main-nav > ul > li { position: relative; padding-right: 22px; }
.main-nav > ul > li:last-child { padding-right: 0; }
.main-nav > ul > li > a {
	display: block;
	padding-bottom: 45px;
	font-size: 14px;
	font-weight: 600;
	line-height: 14px;
	color: rgba(0,0,0,.6);
	transition: opacity .4s;
}
.main-nav > ul > li > a:hover { opacity: .7; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { color: var(--hy-blue); }
.main-nav .sub-menu {
	position: absolute; top: 59px; left: 0; z-index: 9999; width: 240px; padding: 20px 0;
	background: #fff; border-top: 3px solid var(--hy-blue); box-shadow: 0 2px 5px rgba(0,0,0,.1);
	visibility: hidden; opacity: 0; transition: opacity .2s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.main-nav .sub-menu li { padding: 0 20px; }
.main-nav .sub-menu a { display: block; padding: 6px 20px; width: 200px; font-size: 14px; color: rgba(0,0,0,.6); }
.main-nav .sub-menu a:hover { background: rgba(0,0,0,.03); opacity: .7; }

.menu-toggle { display: none; background: none; border: 0; padding: 0; cursor: pointer; color: var(--hy-blue); align-self: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
	display: block; width: 24px; height: 3px; background: currentColor; position: relative; transition: transform .2s, background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
	:root { --hy-header-h: 80px; }
	.site-branding { max-width: 50%; }
	.menu-toggle { display: block; }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0; padding: 5% 0; display: none;
		background: #fff; border-top: 3px solid var(--hy-blue); box-shadow: 0 2px 5px rgba(0,0,0,.1);
	}
	.main-nav.is-open { display: block; }
	.main-nav > ul { display: block; width: 80%; margin: 0 auto; }
	.main-nav > ul > li { padding: 0; }
	.main-nav > ul > li > a { padding: 10px 5%; border-bottom: 1px solid rgba(0,0,0,.03); }
	.main-nav .sub-menu { position: static; visibility: visible; opacity: 1; width: auto; padding: 0 0 0 20px; border: 0; box-shadow: none; }
	.main-nav .sub-menu li { padding: 0; }
	.main-nav .sub-menu a { width: auto; padding: 10px 5%; }
	.site-header .container { position: static; }
	.site-header { position: relative; }
}
@media (max-width: 767px) {
	.topbar .container { justify-content: center; text-align: center; }
	.topbar__brand { width: 100%; margin-bottom: 6px; }
	.topbar__tagline { display: none; }
}

/* =========================================================================
   Home: full-width slider (Divi geometry: slide padding 0 6%, description 16% 8%)
   ========================================================================= */
.hero { position: relative; overflow: hidden; background: #000; }
.hero__track { position: relative; }
.hero__slide {
	position: absolute; inset: 0;
	padding: 0 6%;
	display: flex; align-items: center; justify-content: center;
	background-size: cover; background-position: center; background-color: var(--hy-blue);
	color: #fff; text-align: center;
	opacity: 0; transition: opacity 1s ease-in-out; z-index: 0;
}
.hero__slide:first-child { position: relative; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.hero__desc { position: relative; width: 100%; padding: 16% 8%; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.hero__title { font-size: 46px; font-weight: 300; line-height: 1em; color: #fff; padding-bottom: 10px; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.hero__text p { font-size: 26px; font-weight: 500; line-height: 1em; padding-bottom: 10px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.hero__btn {
	display: inline-block; margin-top: 20px; padding: 6px 20px;
	font: 500 20px/1.7em var(--hy-font); color: #fff;
	border: 2px solid #fff; border-radius: 3px; text-shadow: none; transition: all .2s;
}
.hero__btn:hover { opacity: 1; color: #fff; background: rgba(255,255,255,.2); border-color: transparent; }
.hero__dots { position: absolute; bottom: 37px; left: 0; right: 0; z-index: 10; text-align: center; line-height: 0; }
.hero__dots button {
	display: inline-block; width: 7px; height: 7px; margin-right: 10px; padding: 0; border: 0; border-radius: 7px;
	background: rgba(255,255,255,.5); cursor: pointer; text-indent: -9999px; overflow: hidden;
}
.hero__dots button:last-child { margin-right: 0; }
.hero__dots button.is-active { background: #fff; }
.hero__arrow {
	position: absolute; top: 50%; z-index: 10; margin-top: -24px; width: 48px; height: 48px;
	border: 0; padding: 0; background: none; color: #fff; cursor: pointer; opacity: 0; transition: all .3s;
}
.hero__arrow svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero__arrow--prev { left: -48px; }
.hero__arrow--next { right: -48px; }
.hero:hover .hero__arrow { opacity: 1; }
.hero:hover .hero__arrow--prev { left: 22px; }
.hero:hover .hero__arrow--next { right: 22px; }
@media (max-width: 980px) {
	.hero__title { font-size: 30px; }
	.hero__btn { font-size: 18px; }
}
@media (max-width: 980px) {
	.hero__text p { font-size: 20px; }
}
@media (max-width: 767px) {
	.hero__title { font-size: 20px; }
	.hero__text { display: none; }
	.hero__btn { font-size: 14px; padding: 3px 14px; }
	.hero__desc { padding: 10% 8%; }
}

/* Optional service tiles (off by default; not part of the original design) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tile {
	position: relative; min-height: 340px; display: flex; align-items: flex-end; padding: 36px;
	background: var(--hy-ink) center/cover no-repeat; color: #fff; overflow: hidden;
}
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 65%); }
.tile__inner { position: relative; }
.tile h3 { color: #fff; }
.tile p { color: #fff; }

/* =========================================================================
   Divi section / row grid — used by the front page and the rebuilt pages
   ========================================================================= */
.hy-section { position: relative; padding: 4% 0; background-color: #fff; }
.hy-pt-0 { padding-top: 0 !important; }
.hy-pb-0 { padding-bottom: 0 !important; }
.hy-row { position: relative; width: var(--hy-row); max-width: var(--hy-row-max); margin: 0 auto; padding: 2% 0; }
.hy-row--full { width: 100%; max-width: 100%; }
.hy-row--56 { width: 56%; }
.hy-row--70 { width: 69.6%; }
.hy-row--pt18 { padding: 18px 0 0; }
.hy-bg-blue { background-color: var(--hy-blue) !important; }
.hy-bg-grey { background-color: var(--hy-grey) !important; }
.hy-bg-white { background-color: #fff !important; }
.hy-bg-blue, .hy-bg-blue h1, .hy-bg-blue h2, .hy-bg-blue h3, .hy-bg-blue h4, .hy-bg-blue p { color: #fff; }
.hy-center, .hy-center h1, .hy-center h2, .hy-center h3, .hy-center p { text-align: center; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* Block-editor wrappers inside the grid */
.hy-builder .wp-block-group { margin-top: 0; margin-bottom: 0; }
.hy-builder .hy-row, .hy-row { margin-left: auto !important; margin-right: auto !important; }
.hy-builder .wp-block-group__inner-container > * { margin-top: 0; margin-bottom: 0; }
.hy-builder > .wp-block-group, .hy-builder > .alignfull { width: 100%; max-width: 100%; margin: 0; }

/* Columns: Divi "gutter 3" = 5.5% gap */
.hy-builder .wp-block-columns, .hy-cols {
	display: flex; flex-wrap: nowrap; align-items: flex-start;
	gap: 0 5.5% !important; margin: 0 !important;
}
.hy-builder .wp-block-columns.are-vertically-aligned-center { align-items: center; }
.hy-builder .wp-block-column.is-vertically-aligned-center { align-self: center; }
.hy-builder .wp-block-column { flex-grow: 0; flex-shrink: 0; min-width: 0; margin: 0 !important; }
.hy-builder .wp-block-columns > .wp-block-column:not([style*="flex-basis"]) { flex: 1 1 0; }
.hy-builder .wp-block-columns.hy-cols--g2, .hy-cols--g2 { gap: 0 3% !important; }
.hy-builder .wp-block-columns.hy-cols--flush, .hy-cols--flush { gap: 0 !important; }
.hy-builder .hy-cols--g2 .wp-block-column, .hy-builder .hy-cols--flush .wp-block-column { flex: 1 1 0 !important; }
.hy-builder .hy-cols--g2 img, .hy-builder .hy-cols--flush img { width: 100%; }
@media (max-width: 980px) {
	.hy-builder .wp-block-columns, .hy-cols { flex-wrap: wrap !important; }
	.hy-builder .wp-block-column { flex-basis: 100% !important; margin-bottom: 30px !important; }
	.hy-builder .wp-block-column:last-child { margin-bottom: 0 !important; }
	.hy-cols--g2 .wp-block-column, .hy-cols--flush .wp-block-column { flex-basis: 47% !important; flex-grow: 1 !important; }
	.hy-section { padding: 50px 0; }
	.hy-row { padding: 30px 0; }
	.hy-row--56, .hy-row--70 { width: 80%; }
}

/* Module spacing: Divi gives each module 2.75% bottom margin except the last */
.hy-builder .wp-block-image, .hy-builder figure { margin: 0; text-align: center; line-height: 0; }
.hy-builder .wp-block-image img { display: inline-block; }
.hy-builder .wp-block-image.alignleft { text-align: left; float: none; margin: 0; }
.hy-mod + .hy-mod,
.hy-builder p + .wp-block-image, .hy-builder p + .wp-block-buttons,
.hy-builder .wp-block-image + .wp-block-image, .hy-builder .wp-block-image + p,
.hy-builder .wp-block-image + h2 { margin-top: 28px; }
.hy-border-white img { border: 1px solid #fff; }

/* Blue heading bar (Divi full-width row, blue, centred 26px white) */
.hy-band { text-align: center; }
.hy-band h2 { color: #fff; text-align: center; }

/* Promo / call-to-action box */
.hy-promo {
	padding: 40px 60px !important;
	background-color: var(--hy-blue);
	color: #fff;
	text-align: center;
}
.hy-promo h2, .hy-promo h3, .hy-promo p { color: #fff; text-align: center; }
.hy-promo .hy-promo__desc { padding-bottom: 20px; }
.hy-promo .wp-block-buttons { justify-content: center; margin-top: 0 !important; }
.hy-promo--red { background-color: var(--hy-red); border: 4px solid #fff; width: 60%; max-width: 900px; margin: 0 auto; }
@media (max-width: 767px) {
	.hy-promo { padding: 40px 40px !important; }
	.hy-promo--red { width: 100%; }
}

/* Full-screen page header (Divi full-width header module) */
.hy-fw-header, .wp-block-cover.hy-fw-header {
	position: relative;
	min-height: calc(100vh - var(--hy-topbar-h) - var(--hy-header-h)) !important;
	display: flex; align-items: center; justify-content: center;
	padding: 50px 0 !important;
	background: #000 center/cover no-repeat;
	color: #fff; text-align: center; overflow: hidden;
}
.admin-bar .hy-fw-header { min-height: calc(100vh - 32px - var(--hy-topbar-h) - var(--hy-header-h)) !important; }
.hy-fw-header .wp-block-cover__inner-container { width: 80% !important; max-width: 800px; padding: 10px; color: #fff; z-index: 2; position: relative; }
.hy-fw-header h1, .hy-fw-header h2 { color: #fff; text-align: center; }
.hy-fw-header .wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hy-fw-header .wp-block-cover__background { position: absolute; inset: 0; z-index: 1; background-color: #000; }
.hy-fw-header .has-background-dim-10 { opacity: .1; }
.hy-fw-header .has-background-dim-20 { opacity: .2; }
.hy-fw-header .has-background-dim-30 { opacity: .3; }
.hy-fw-header::after {
	content: ""; position: absolute; left: 50%; bottom: 24px; z-index: 3; width: 49px; height: 49px; margin-left: -24px;
	background-color: var(--hy-scroll, #fff);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 16.6 4.7 9.3l1.4-1.4 5.9 5.9 5.9-5.9 1.4 1.4z'/%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='M12 16.6 4.7 9.3l1.4-1.4 5.9 5.9 5.9-5.9 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
	cursor: pointer;
}
.hy-scroll-orange { --hy-scroll: #e09900; }
@media (max-width: 980px) {
	.hy-fw-header, .wp-block-cover.hy-fw-header { min-height: 70vh !important; }
}

/* =========================================================================
   Front page specifics
   ========================================================================= */
.hy-home-emergency .hy-promo h2 { padding-bottom: 10px; }
.hy-logos { display: flex; align-items: flex-start; justify-content: space-between; }
.hy-logos__col { text-align: center; line-height: 0; }
.hy-logos img { display: inline-block; max-width: 100%; height: auto; }
@media (max-width: 767px) {
	.hy-logos { flex-wrap: wrap; row-gap: 30px; }
	.hy-logos__col { width: 47% !important; }
}

/* =========================================================================
   Standard pages (Divi default page template)
   ========================================================================= */
.hy-page { padding-top: 58px; padding-bottom: 83px; }
.hy-page .entry-title { font-size: 30px; padding-bottom: 10px; margin-bottom: 20px; }
.hy-page .entry-content h1 { font-size: 30px; }
.hy-page .entry-content .alignleft { float: left; margin: 0 30px 30px 0; }
.hy-page .entry-content .alignright { float: right; margin: 0 0 30px 30px; }
.hy-page .entry-content .aligncenter { display: block; margin: 0 auto; }
.layout-sidebar { display: grid; grid-template-columns: 1fr 23%; gap: 5.5%; }
@media (max-width: 980px) { .layout-sidebar { grid-template-columns: 1fr; } }
.widget { margin-bottom: 30px; }
.widget-title { font-size: 18px; }
.post-card { padding-bottom: 55px; }
.post-card h2 { font-size: 26px; }
.post-meta { padding-bottom: 15px; font-size: 14px; color: #666; }
.pagination { display: flex; gap: 8px; }

/* =========================================================================
   Contact form (Divi contact-form look)
   ========================================================================= */
.hy-form { display: flex; flex-wrap: wrap; justify-content: space-between; }
.hy-form .hy-field { width: 100%; margin: 0 0 3%; padding: 0; }
.hy-form .hy-field--half { width: 47.75%; }
.hy-form input[type="text"], .hy-form input[type="email"], .hy-form input[type="tel"], .hy-form textarea {
	display: block; width: 100%; padding: 16px; margin: 0;
	font: 500 14px var(--hy-font); color: #999;
	background: #eee; border: 1px solid var(--hy-blue); border-radius: 3px;
	-webkit-appearance: none; appearance: none;
}
.hy-form textarea { height: auto; min-height: 150px; resize: vertical; }
.hy-form input:focus, .hy-form textarea:focus { color: #3e3e3e; outline: none; }
.hy-form .hy-gdpr { width: 100%; margin-bottom: 3%; }
.hy-form .hy-gdpr__title { display: block; font-weight: 600; padding-bottom: 6px; }
.hy-form .hy-gdpr label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.hy-form .hy-gdpr input { width: 14px; height: 14px; margin: 0; accent-color: var(--hy-blue); }
.hy-form .hy-submit { width: 100%; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.hy-form .hy-captcha { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.hy-form .hy-captcha input { width: 52px; height: 53px; padding: 0 4px; text-align: center; color: #999; }
.hy-form .hy-hp { position: absolute; left: -9999px; }
.hy-form-msg { width: 100%; padding: 12px 16px; margin-bottom: 20px; border-radius: 3px; }
.hy-form-msg--ok { background: #e8f3ea; color: #2a6b35; }
.hy-form-msg--err { background: #fbe9e7; color: #a5281c; }
@media (max-width: 767px) { .hy-form .hy-field--half { width: 100%; } }

/* =========================================================================
   Footer (Divi: #222, 4 columns 20.875% / 5.5% gutter, 6% top padding)
   ========================================================================= */
.site-footer { background: var(--hy-ink); }
.footer-widgets { display: flex; padding: 6% 0 0; }
.footer-widgets .footer-col { width: 20.875%; margin-right: 5.5%; margin-bottom: 5.5%; color: #fff; }
.footer-widgets .footer-col:last-child { margin-right: 0; }
.footer-widgets .fwidget { margin-bottom: 26.347%; }
.footer-widgets .fwidget:last-child { margin-bottom: 0; }
.footer-widgets h4, .footer-widgets .widget-title { font-size: 18px; color: var(--hy-blue); padding-bottom: 10px; }
.footer-widgets, .footer-widgets p, .footer-widgets a { color: #fff; }
.footer-widgets ul { list-style: none; padding: 0; line-height: 1.7em; }
.footer-widgets ul li { position: relative; padding-left: 14px; margin-bottom: 0; }
.footer-widgets ul li::before {
	content: ""; position: absolute; top: 9px; left: 0;
	border: 3px solid var(--hy-footer-accent); border-radius: 3px;
}
.footer-bottom { background: rgba(0,0,0,.32); padding: 15px 0 5px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; }
.footer-bottom, .footer-bottom p { color: #666; }
.footer-bottom p { padding-bottom: 10px; }
.footer-bottom ul { list-style: none; display: flex; gap: 18px; padding: 0; }
@media (max-width: 980px) {
	.footer-widgets { flex-wrap: wrap; padding: 8% 0; }
	.footer-widgets .footer-col { width: 46.25%; margin: 0 7.5% 7.5% 0; }
	.footer-widgets .footer-col:nth-child(2n) { margin-right: 0; }
	.footer-widgets .footer-col:empty { display: none; }
	.footer-bottom { text-align: center; }
	.footer-bottom .container { justify-content: center; }
}
@media (max-width: 767px) {
	.footer-widgets { padding: 10% 0; }
	.footer-widgets .footer-col { width: 100%; margin-right: 0; margin-bottom: 9.5%; }
}

/* Optional CTA band (off by default) */
.cta-band { background: var(--hy-blue); color: #fff; padding: 46px 0; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { color: #fff; }

/* Back to top (Divi style) */
.to-top {
	position: fixed; right: 0; bottom: 125px; z-index: 99999; width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 5px 0 0 5px; background: rgba(0,0,0,.4); color: #fff; cursor: pointer;
	opacity: 0; visibility: hidden; transition: opacity .3s;
}
.to-top svg { width: 30px; height: 30px; fill: currentColor; }
.to-top.is-visible { opacity: 1; visibility: visible; }

/* Editor palette helpers */
.has-hy-blue-color { color: var(--hy-blue); } .has-hy-blue-background-color { background-color: var(--hy-blue); }
.has-hy-red-color { color: var(--hy-red); } .has-hy-red-background-color { background-color: var(--hy-red); }
.has-hy-grey-color { color: var(--hy-grey); } .has-hy-grey-background-color { background-color: var(--hy-grey); }
.has-hy-ink-color { color: var(--hy-ink); } .has-hy-ink-background-color { background-color: var(--hy-ink); }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }
.alignleft { float: left; } .alignright { float: right; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 13px; color: #888; text-align: center; line-height: 1.5; }
