/* Solar Hub - custom styles */

/* Page template: no sidebar */
.no-sidebar #content {
	max-width: 100%;
    justify-content: center;
}

.no-sidebar .site-main {
	margin-left: 0;
	margin-right: 0;
	float: none;
	width: 100%;
}

/* Blog archive sidebar inside Bootstrap container */
.col-md-4 .widget-area {
	padding-top: 60px;
}

.is-right-sidebar {
	width: auto;
}

.col-md-4 .widget {
	margin-bottom: 30px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.col-md-4 .widget-title {
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 15px;
	color: var(--ink);
}

:root {
    --g: #0d6b4f;
    --g2: #13a36f;
    --y: #f5b942;
    --bg: #f7faf8;
    --ink: #17231f;
    --muted: #65736d;
    --line: #e1e9e4;
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Arial;
    color: var(--ink);
    background: var(--bg)
}

a {
    text-decoration: none;
    color: inherit
}

.wrap {
    width: min(92%, var(--max));
    margin: auto
}

header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fffffff2;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line)
}

.nav {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--g)
}

.logo span {
    color: var(--y)
}

nav {
    display: flex;
    gap: 20px
}

nav a {
    font-size: 14px;
    font-weight: 700;
    color: #46554e
}

.hero {
    padding: 72px 0;
    background: linear-gradient(135deg, #eaf7f0, #fff 60%, #fff6df)
}

.heroGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center
}

.eyebrow {
    background: #dff2e9;
    color: var(--g);
    border-radius: 99px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -2.5px;
    margin: 18px 0
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 650px
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap
}

.btn {
    display: inline-block;
    padding: 11px 17px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 800
}

.primary {
    background: var(--g);
    color: #fff;
    border-color: var(--g)
}

.heroImg {
    height: 410px;
    border-radius: 26px;
    background: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1200&q=85') center/cover;
    box-shadow: 0 18px 50px #17372d1c
}

section {
    padding: 60px 0
}

.head {
    margin-bottom: 24px
}

.head h2 {
    font-size: 32px;
    line-height: 1.1;
    margin: 0 0 7px
}

.head p {
    margin: 0;
    color: var(--muted)
}

.topics {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 13px
}

.topic,
.card,
.stat,
.box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px
}

.topic:hover,
.card:hover {
    transform: translateY(-2px)
}

.ico {
    font-size: 22px;
    background: #eaf6f0;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    margin-bottom: 10px
}

.topic strong {
    display: block
}

.topic small {
    color: var(--muted)
}

.featured {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px
}

.feature {
    min-height: 290px;
    border-radius: 22px;
    padding: 30px;
    color: #fff;
    background: linear-gradient(120deg, #0d6b4fee, #143129dd), url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&w=1200&q=80') center/cover
}

.feature h3 {
    font-size: 30px;
    max-width: 650px
}

.feature p {
    color: #dbe9e3;
    max-width: 620px
}

.miniGrid {
    display: grid;
    gap: 18px
}

.mini {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 25px
}

.articleSec {
    background: #fff;
    border-top: 1px solid var(--line)
}

.articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.card .num {
    font-size: 11px;
    color: var(--g);
    font-weight: 900
}

.card h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 7px 0
}

.card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0
}

.card a {
    display: inline-block;
    color: var(--g);
    font-size: 13px;
    font-weight: 900;
    margin-top: 12px
}

.mapGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: center
}

.map {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
    padding: 22px;
    background: #edf7f2;
    border: 1px solid var(--line);
    border-radius: 22px
}

.state {
    background: #fff;
    border: 1px solid #dce8e2;
    border-radius: 7px;
    padding: 7px 4px;
    text-align: center;
    font-size: 10px;
    font-weight: 800
}

.state:hover {
    background: var(--g);
    color: #fff
}

.calc {
    background: #15392f;
    color: #fff;
    border-radius: 24px;
    padding: 30px
}

.calcGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
}

.field {
    margin: 14px 0
}

.field label {
    display: block;
    font-size: 12px;
    color: #cfe1da;
    font-weight: 800
}

.field input {
    width: 100%;
    padding: 11px;
    border-radius: 9px;
    border: 1px solid #5a8175;
    background: #214b40;
    color: #fff
}

.result {
    background: #ffffff12;
    border: 1px solid #ffffff1f;
    border-radius: 18px;
    padding: 25px
}

.big {
    font-size: 42px;
    font-weight: 900
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.stat b {
    display: block;
    color: var(--g);
    font-size: 29px
}

.stat span {
    color: var(--muted);
    font-size: 13px
}

.boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.box {
    background: #eff7f3
}

.box h3 {
    margin-top: 0
}

.box p {
    color: var(--muted);
    font-size: 14px
}

.newsletter {
    background: #fff4db;
    border: 1px solid #efdfb9;
    border-radius: 22px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center
}

.newsletter form {
    display: flex;
    gap: 8px;
    min-width: 410px
}

.newsletter input {
    flex: 1;
    padding: 12px;
    border: 1px solid #dbc88f;
    border-radius: 9px
}

.newsletter button {
    background: var(--g);
    color: #fff;
    border: 0;
    border-radius: 9px;
    padding: 12px 17px;
    font-weight: 800
}

footer {
    background: #122a23;
    color: #b9cec6;
    padding: 45px 0 25px
}

.foot {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 25px
}

.foot h4 {
    color: #fff
}

.foot a {
    display: block;
    font-size: 14px;
    margin: 7px 0
}

.copy {
    border-top: 1px solid #ffffff1a;
    margin-top: 25px;
    padding-top: 18px;
    font-size: 12px
}

@media(max-width:900px) {
    nav {
        display: none
    }

    .heroGrid,
    .featured,
    .mapGrid,
    .calcGrid {
        grid-template-columns: 1fr
    }

    .topics {
        grid-template-columns: repeat(3, 1fr)
    }

    .articles,
    .boxes {
        grid-template-columns: repeat(2, 1fr)
    }

    .stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .newsletter {
        display: block
    }

    .newsletter form {
        min-width: 0;
        margin-top: 15px
    }
}

@media(max-width:600px) {

    .topics,
    .articles,
    .boxes,
    .stats {
        grid-template-columns: 1fr
    }

    .map {
        grid-template-columns: repeat(4, 1fr)
    }

    .newsletter form {
        display: block
    }

    .newsletter input,
    .newsletter button {
        width: 100%;
        margin-bottom: 8px
    }

    .foot {
        grid-template-columns: 1fr 1fr
    }

    .hero {
        padding: 45px 0
    }

    .heroImg {
        height: 300px
    }
}


/*--------------------------------------------------------------
# Site Header - Solar Hub Design Override
#
# Matches the header from solar_hub_website.html:
# - Sticky, translucent glass bar with blur
# - Bottom border, 70px height
# - Green bold logo left, bold menu links right
#
# Uses ID + class specificity to override GeneratePress
# inline dynamic CSS without !important.
--------------------------------------------------------------*/

/* 1. Header bar: sticky + glass background */
body #masthead.site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 500;
	background-color: rgba(255, 255, 255, 0.95);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	box-shadow: none;
}

/* 2. Header container: 70px flex bar */
body #masthead.site-header .inside-header.grid-container {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 70px;
	padding-top: 0;
	padding-bottom: 0;
}

/* 3. Logo / site title */
body #masthead.site-header .site-branding {
	margin-right: auto;
}

body #masthead.site-header .main-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 900;
	letter-spacing: -0.5px;
}

body #masthead.site-header .main-title a {
	color: var(--g);
	text-decoration: none;
}

/* Logo image (if uploaded instead of text) fits the 70px bar */
body #masthead.site-header .header-image,
body #masthead.site-header .site-logo img {
	max-height: 44px;
	width: auto;
	height: auto;
}

/* Tagline is not part of the design */
body #masthead.site-header .site-description {
	display: none;
}

/* 4. Menu links */
body #masthead.site-header .main-navigation:not(.toggled) ul li a,
body #site-navigation:not(.toggled) ul li a {
	font-size: 14px;
	font-weight: 700;
	line-height: 70px;
	color: #46554e;
	text-decoration: none;
}

body #masthead.site-header .main-navigation:not(.toggled) ul li a:hover,
body #masthead.site-header .main-navigation:not(.toggled) ul li a:focus,
body #masthead.site-header .main-navigation:not(.toggled) ul li.current-menu-item > a,
body #site-navigation:not(.toggled) ul li.current-menu-item > a {
	color: var(--g);
}

/* Sub-menus keep readable line height inside dropdowns */
body #masthead.site-header .main-navigation:not(.toggled) ul li.menu-item-has-children ul li a {
	line-height: 1.5;
	padding: 8px 20px;
}

/* Search / cart icon buttons match the links */
body .menu-bar-items .menu-bar-item > button {
	font-size: 14px;
	color: #46554e;
}

body .menu-bar-items .menu-bar-item > button:hover {
	color: var(--g);
}

/* 5. Mobile menu toggle stays vertically centered */
@media (max-width: 768px) {
	body #masthead.site-header .main-navigation .menu-toggle {
		line-height: 1;
	}
}
