/*
Theme Name: Solar Unpacked Kadence Child
Template: kadence
Version: 0.2.2
Text Domain: solarunpacked-kadence-child
*/

:root {
  --sg-ink: #14211b;
  --sg-muted: #5e6b64;
  --sg-border: #dfe8e2;
  --sg-bg: #fbfdf9;
  --sg-surface: #ffffff;
  --sg-soft: #eef6ef;
  --sg-primary: #0f6b3d;
  --sg-primary-strong: #084d2c;
  --sg-accent: #c7831f;
}

body {
  background: var(--sg-bg);
}

.site-main,
.content-area {
  color: var(--sg-ink);
}

#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(20, 33, 27, 0.08), 0 10px 28px rgba(20, 33, 27, 0.08);
}

#main-header {
  display: none !important;
}

#mobile-header {
  display: block !important;
}

#mobile-header .site-main-header-inner-wrap {
  min-height: 62px;
}

#mobile-header .site-title {
  font-size: 26px;
  letter-spacing: 0;
}

#mobile-header .site-container {
  max-width: 1180px;
}

.mobile-toggle-open-container .menu-toggle-open,
.mobile-toggle-open-container .menu-toggle-open:focus {
  width: 44px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 107, 61, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--sg-primary-strong);
  box-shadow: 0 8px 20px rgba(20, 33, 27, 0.08);
}

.mobile-toggle-open-container .menu-toggle-open:hover {
  border-color: var(--sg-primary);
  color: var(--sg-primary);
}

#mobile-drawer.popup-drawer .drawer-inner {
  width: min(390px, 92vw) !important;
  max-width: 390px !important;
  margin-left: auto !important;
  background: #07120d;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.26);
}

#mobile-drawer .drawer-header {
  min-height: 58px;
  padding: 8px 18px;
}

#mobile-drawer .drawer-content {
  padding: 4px 20px 24px;
}

#mobile-drawer .mobile-navigation ul li a {
  border-radius: 6px;
  font-size: 15px;
  font-weight: 760;
}

#mobile-drawer .mobile-navigation ul li.current-menu-item > a {
  background: rgba(15, 107, 61, 0.18);
}

.entry-hero.page-hero-section .entry-hero-container-inner {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 77, 44, 0.88), rgba(15, 107, 61, 0.58) 48%, rgba(20, 33, 27, 0.34)),
    url("assets/solar-page-header.svg") center / cover no-repeat;
}

.entry-hero.page-hero-section .entry-header {
  min-height: clamp(150px, 20vw, 240px) !important;
  display: flex;
  align-items: center;
}

.entry-hero.page-hero-section .entry-title {
  max-width: 860px;
  color: #fff;
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.entry-hero.page-hero-section .entry-title::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--sg-accent);
}

.content-area {
  margin-top: clamp(26px, 4vw, 48px);
}

.sg-ad-banner,
.sg-text-ad,
.sg-footer-ad,
.sg-site-footer {
  box-sizing: border-box;
}

.sg-ad-banner {
  max-width: 1180px;
  margin: 0 auto 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(15, 107, 61, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(238, 246, 239, 0.92), rgba(255, 255, 255, 0.96)),
    url("assets/solar-page-header.svg") center / cover no-repeat;
  box-shadow: 0 12px 32px rgba(20, 33, 27, 0.07);
}

.sg-ad-banner span,
.sg-text-ad span,
.sg-footer-ad span {
  display: block;
  color: var(--sg-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.sg-ad-banner strong {
  display: block;
  color: var(--sg-ink);
  font-size: 18px;
  line-height: 1.2;
}

.sg-ad-banner em,
.sg-text-ad em {
  display: block;
  margin-top: 3px;
  color: var(--sg-muted);
  font-size: 13px;
  font-style: normal;
}

.sg-ad-banner a,
.sg-footer-ad a {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--sg-primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.sg-ad-grid {
  max-width: 1180px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sg-text-ad {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(20, 33, 27, 0.06);
}

.sg-text-ad strong {
  display: block;
  margin-top: 6px;
  color: var(--sg-primary-strong);
  font-size: 17px;
  line-height: 1.2;
}

.site-footer {
  display: none;
}

.sg-site-footer {
  margin-top: clamp(44px, 8vw, 86px);
  padding: clamp(28px, 5vw, 54px) clamp(18px, 4vw, 40px) 28px;
  background:
    linear-gradient(180deg, rgba(8, 77, 44, 0.94), rgba(20, 33, 27, 0.98)),
    url("assets/solar-page-header.svg") center / cover no-repeat;
  color: #fff;
}

.sg-footer-ad,
.sg-footer-columns,
.sg-footer-bottom {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.sg-footer-ad {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sg-footer-ad strong {
  display: block;
  font-size: 20px;
}

.sg-footer-ad p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.sg-footer-ad a {
  background: #fff;
  color: var(--sg-primary-strong);
}

.sg-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 44px);
  padding-top: 34px;
}

.sg-footer-columns h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.sg-footer-columns p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.sg-footer-columns ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-footer-columns a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.sg-footer-columns a:hover {
  color: #fff;
  text-decoration: underline;
}

.sg-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.64);
}

.sg-footer-bottom p {
  margin: 0;
}

@media (max-width: 780px) {
  #mobile-header .site-main-header-inner-wrap {
    min-height: 58px;
  }

  #mobile-header .site-title {
    font-size: 21px;
  }

  .entry-hero.page-hero-section .entry-title {
    font-size: 34px;
  }

  .sg-ad-banner,
  .sg-footer-ad,
  .sg-footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .sg-ad-banner a,
  .sg-footer-ad a {
    width: 100%;
  }

  .sg-ad-grid,
  .sg-footer-columns {
    grid-template-columns: 1fr;
  }
}
