/*
Theme Name:   Horizons Energy
Theme URI:    https://www.horizons-energy.com
Description:  Refreshed design for Horizons Energy (child theme of Sydney). All visual changes live here so the Sydney parent theme can keep receiving updates.
Author:       Horizons Energy
Template:     sydney
Version:      1.0.0
Text Domain:  horizons-energy
*/

:root {
	--he-navy: #0b2545;
	--he-navy-2: #13315c;
	--he-navy-3: #071a33;
	--he-red: #d62828;
	--he-red-dark: #b51f1f;
	--he-gray: #f4f6f9;
	--he-line: #e2e6ec;
	--he-text: #1f2933;
	--he-muted: #52606d;
	--he-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base typography ---------- */
body, button, input, select, textarea { font-family: var(--he-font); color: var(--he-text); }
body { font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .site-title, .widget-title { font-family: var(--he-font); color: var(--he-navy); letter-spacing: -0.01em; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 650; }
a { color: var(--he-red); }
a:hover, a:focus { color: var(--he-red-dark); }
.entry-content p, .textwidget p { color: var(--he-text); }

/* Page-builder widget titles: calmer than all-caps red */
.so-panel .widget-title, .panel-widget-style .widget-title {
	text-transform: none; letter-spacing: -0.01em; font-weight: 700;
}
.widget-title:after, .so-panel .widget-title:after { background-color: var(--he-red) !important; height: 3px; width: 48px; }

/* ---------- Header ---------- */
.site-header, .site-header.float-header, .header-clone { background-color: var(--he-navy) !important; }
.site-header { box-shadow: 0 2px 16px rgba(7, 26, 51, .25); padding: 18px 0; }
.site-header.float-header { padding: 12px 0; }
.home .site-header:not(.float-header) { background-color: transparent !important; box-shadow: none; }
.site-title a, .site-title a:hover { color: #fff !important; font-weight: 700; letter-spacing: -0.02em; }
.site-description { color: rgba(255,255,255,.75) !important; letter-spacing: .04em; font-size: 14px !important; }
.mainnav ul li a { color: #fff !important; font-size: 15px; font-weight: 600; letter-spacing: .01em; opacity: .9; }
.mainnav ul li a:hover, .mainnav ul li.current-menu-item > a, .mainnav ul li.current-menu-ancestor > a { opacity: 1; color: #fff !important; box-shadow: inset 0 -2px 0 var(--he-red); }
#mainnav ul ul, .mainnav ul ul, #mainnav .sub-menu {
	background: #fff !important; border-radius: 6px; box-shadow: 0 12px 32px rgba(7,26,51,.22);
	padding: 8px 0; border-top: 3px solid var(--he-red); z-index: 99999 !important; min-width: 240px;
}
#mainnav ul ul li, .mainnav ul ul li, #mainnav .sub-menu li {
	background: #fff !important; border-top: 1px solid var(--he-line) !important; width: 100%;
}
#mainnav ul ul li:first-child, .mainnav ul ul li:first-child, #mainnav .sub-menu li:first-child {
	border-top: none !important;
}
#mainnav ul ul li a, .mainnav ul ul li a, #mainnav .sub-menu li a {
	color: var(--he-navy) !important; background: transparent !important;
	font-weight: 600; font-size: 14.5px; opacity: 1 !important;
	box-shadow: none !important; padding: 10px 18px !important; width: 100%;
}
#mainnav ul ul li:hover, .mainnav ul ul li:hover, #mainnav .sub-menu li:hover,
#mainnav ul ul li a:hover, .mainnav ul ul li a:hover, #mainnav .sub-menu li a:hover {
	background: var(--he-gray) !important; color: var(--he-red) !important;
}
#mainnav ul ul li:hover > a, .mainnav ul ul li:hover > a, #mainnav .sub-menu li:hover > a,
#mainnav ul ul li.current-menu-item > a, .mainnav ul ul li.current-menu-item > a {
	color: var(--he-red) !important;
}

/* ---------- Homepage hero (Sydney slider) ---------- */
.sydney-hero-area .slide-item::before, .header-slider .slide-item::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(100deg, rgba(7,26,51,.85) 0%, rgba(11,37,69,.55) 55%, rgba(11,37,69,.15) 100%);
}
.slide-inner { z-index: 2; }
.slide-inner .contain { max-width: 820px; }
.maintitle { font-size: 54px !important; line-height: 1.12 !important; font-weight: 750 !important; letter-spacing: -0.02em; text-transform: none !important; }
.subtitle { font-size: 21px !important; opacity: .92; font-weight: 400; margin-top: 18px; }
.slide-inner .roll-button, .roll-button.button-slider {
	background: var(--he-red) !important; border-color: var(--he-red) !important; border-radius: 4px;
	padding: 15px 34px; font-weight: 700; letter-spacing: .06em; margin-top: 28px;
}
.slide-inner .roll-button:hover { background: var(--he-red-dark) !important; border-color: var(--he-red-dark) !important; color: #fff !important; }
@media (max-width: 767px) { .maintitle { font-size: 34px !important; } .subtitle { font-size: 17px !important; } }

/* ---------- Generic buttons ---------- */
.roll-button, button, input[type="button"], input[type="reset"], input[type="submit"], .wp-block-button__link {
	border-radius: 4px; font-weight: 700; letter-spacing: .04em;
}

/* ---------- Block-based homepage sections ---------- */
.he-band { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 80px max(24px, calc(50vw - 585px)); }
.he-band > * { max-width: 1170px; margin-left: auto; margin-right: auto; }
.he-band-gray { background: var(--he-gray); }
.he-band-navy { background: var(--he-navy); color: #fff; }
.he-band-navy h2, .he-band-navy h3, .he-band-navy p, .he-band-navy li { color: #fff; }
.he-section-title { font-size: 36px; margin: 0 0 10px; text-align: center; }
.he-section-intro { text-align: center; color: var(--he-muted) !important; max-width: 720px; margin: 0 auto 48px !important; font-size: 18px; }
.he-band-navy .he-section-intro { color: rgba(255,255,255,.8) !important; }
.he-eyebrow { font-size: 13px !important; text-transform: uppercase; letter-spacing: .12em; color: var(--he-red) !important; font-weight: 700; margin-bottom: 8px !important; text-align: center; }
.he-card-eyebrow { text-align: left; }

.he-grid { gap: 28px !important; }
.he-tile { background: #fff; border: 1px solid var(--he-line); border-radius: 8px; padding: 30px 28px; box-shadow: 0 4px 18px rgba(7,26,51,.06); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; }
.he-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(7,26,51,.12); }
.he-tile h3 { font-size: 21px; margin: 6px 0 10px; }
.he-tile p { font-size: 16px; color: var(--he-muted) !important; }
.he-tile .he-link { margin-top: auto; font-weight: 700; font-size: 15px; }
.he-tile .he-link a { text-decoration: none; }
.he-tile .he-link a::after { content: " \2192"; }
.he-icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(214,40,40,.1); color: var(--he-red); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 8px !important; }

.he-band-navy .he-tile { background: var(--he-navy-2); border-color: rgba(255,255,255,.08); box-shadow: none; }
.he-band-navy .he-tile p { color: rgba(255,255,255,.78) !important; }
.he-band-navy .he-tile .he-link a { color: #ff8a8a; }

.he-stats { gap: 20px !important; text-align: center; margin-top: 8px; }
.he-stat-num { font-size: 44px !important; font-weight: 800; color: var(--he-navy) !important; line-height: 1.1 !important; margin: 0 !important; letter-spacing: -0.02em; }
.he-stat-label { color: var(--he-muted) !important; font-size: 15px !important; margin-top: 6px !important; }

.he-split { gap: 48px !important; align-items: center !important; }
.he-news { background: #fff; border-left: 4px solid var(--he-red); border-radius: 6px; padding: 26px 28px; box-shadow: 0 4px 18px rgba(7,26,51,.06); }

.he-cta-band { text-align: center; }
.he-cta-band h2 { font-size: 34px; margin-bottom: 10px; }
.he-cta-band .wp-block-button__link { background: var(--he-red); color: #fff; padding: 15px 34px; text-transform: uppercase; }
.he-cta-band .is-style-outline .wp-block-button__link { background: transparent; border: 2px solid #fff; color: #fff; }

/* Products page cards (shared with Additional CSS) */
.he-card { border-top-color: var(--he-red) !important; border-radius: 8px !important; }
.he-cta { background: var(--he-navy) !important; }

/* ---------- Inner pages ---------- */
.page-wrap { padding-top: 70px; padding-bottom: 70px; }
.home .page-wrap { padding-top: 0; padding-bottom: 0; }
.entry-content img, .textwidget img { border-radius: 6px; }
.entry-content ul li, .textwidget ul li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
#sidebar-footer, .footer-widgets { background-color: var(--he-navy-3) !important; padding: 64px 0 36px; color: rgba(255,255,255,.75); }
#sidebar-footer .widget-title, .footer-widgets .widget-title, #sidebar-footer h2, #sidebar-footer h3 { color: #fff !important; font-size: 15px !important; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
#sidebar-footer .widget-title:after { display: none; }
#sidebar-footer p, #sidebar-footer li { color: rgba(255,255,255,.72) !important; font-size: 15px; }
#sidebar-footer a { color: #fff !important; text-decoration: none; }
#sidebar-footer a:hover { color: #ff8a8a !important; }
#sidebar-footer ul { list-style: none; margin: 0; padding: 0; }
#sidebar-footer ul li { padding: 4px 0; }
.site-footer { background-color: #050f1f !important; border-top: 1px solid rgba(255,255,255,.06); }
.site-footer, .site-footer a, .site-info { color: rgba(255,255,255,.55) !important; font-size: 14px; }

/* Back-to-top button */
.go-top { background-color: var(--he-red) !important; border-radius: 4px; }

/* ---------- v1.1 fixes ---------- */
.slide-inner .contain { max-width: 880px; margin-left: auto !important; margin-right: auto !important; text-align: center; }
.slide-inner { text-align: center; }
@media (max-width: 1024px) {
	.header-slider .mobile-slide { display: none !important; }
	.header-slider .slide-item { background: linear-gradient(135deg, #071a33 0%, #13315c 100%) !important; }
	.header-slider .slide-inner { position: relative !important; top: auto !important; transform: none !important; padding: 130px 22px 70px !important; }
}
.he-band { margin-top: 0 !important; margin-bottom: 0 !important; }
.entry-content > .he-band:first-child { margin-top: 0 !important; }
.he-band-navy .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important; border: 2px solid #fff !important; color: #fff !important; padding: 13px 30px; text-transform: uppercase;
}
.he-band-navy .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff !important; color: var(--he-navy) !important; }
#sidebar-footer, .footer-widgets { padding: 0; }
.footer-widgets-grid { padding-top: 64px !important; padding-bottom: 40px !important; }
.he-tile .he-link { padding-top: 10px; }
