/*
Theme Name: House Renovation Guide Genesis Child
Theme URI: https://houserenovationguide.com
Description: Genesis child theme for House Renovation Guide.
Author: House Renovation Guide
Author URI: https://houserenovationguide.com
Template: genesis
Version: 0.2.0
Text Domain: house-renovation-guide
Domain Path: /languages
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 6.0
Requires PHP: 7.4
*/

html {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--color-text-primary);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.4rem, 3vw, 3.25rem);
}

h2 {
  font-size: clamp(1rem, 2.25vw, 2.25rem);
}

h3 {
  font-size: clamp(1rem, 2vw, 1.45rem);
}

h4 {
  font-size: clamp(0.8rem, 1.75vw, 1.15rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin: 0;
  padding-left: 0;
}

li {
  list-style: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.col-3,
.col-9 {
  width: 100%;
}

@media (min-width: 1100px) {
  .col-3 {
    width: calc(25% - 18px);
  }

  .col-9 {
    width: calc(75% - 6px);
  }
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.pl-4 {
  padding-left: 1.5rem;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 230, 232, 0.8);
}

.header-inner-wrap {
  min-height: 82px;
}

.site-title,
.site-title a,
.site-logo a {
  color: var(--color-text-primary);
  font-size: 1.5rem;
  font-weight: 800;
}

.site-logo img {
  max-height: 52px;
  width: auto;
}

.menu.menu--primary {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  align-self: stretch;
}

.menu.menu--primary > li {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.menu.menu--primary > li > a {
  color: var(--color-text-primary);
  font-size: 0.98rem;
  font-weight: 600;
}

.menu.menu--primary > li > a:hover,
.menu.menu--primary > li > a:focus {
  color: var(--color-primary);
}

.menu.menu--primary > li.menu-item-has-mega > .mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  width: 100%;
  padding-top: 1px;
  z-index: 60;
}

.menu.menu--primary > li.menu-item-has-mega:hover > .mega-menu,
.menu.menu--primary > li.menu-item-has-mega:focus-within > .mega-menu {
  display: block;
}

.mega-panel {
  background: #fff;
  width: 100%;
  border: 1px solid var(--color-border);
  border-right: 0;
  border-left: 0;
  box-shadow: 0 18px 36px rgba(31, 58, 95, 0.12);
  padding: 2rem 0;
}

.mega-panel .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  justify-content: start;
  gap: 2rem 3rem;
}

.mega-item {
  min-width: 0;
  text-align: left;
}

.mega-parent {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--color-trust);
  font-weight: 700;
}

.mega-children {
  display: grid;
  gap: 0.5rem;
}

.mega-children a {
  color: var(--color-text-muted);
}

.mega-children a:hover,
.mega-children a:focus {
  color: var(--color-primary);
}

.header-search .search-form,
.mobile-menu__search .search-form {
  position: relative;
}

.search-field {
  width: min(100%, 260px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-text-primary);
  padding: 0.75rem 3rem 0.75rem 1rem;
  font: inherit;
}

.search-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.search-submit {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.header-menu-toggle {
  display: none;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin-left: 1rem;
  padding: 0;
  align-self: center;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--color-trust);
  cursor: pointer;
}

.header-menu-toggle svg {
  width: 30px;
  height: 30px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 58, 95, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 9998;
}

.mobile-menu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__header,
.mobile-menu__search {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__search {
  padding: 1rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
}

.mobile-menu__search .search-form {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.mobile-menu__search .search-form label {
  display: block;
  width: 100%;
}

.mobile-menu__search .search-field {
  width: 100%;
  max-width: none;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__brand {
  color: var(--color-trust);
  font-size: 1.35rem;
  font-weight: 800;
}

.mobile-menu__close,
.mobile-menu__expand {
  border: 0;
  background: transparent;
  color: var(--color-trust);
  cursor: pointer;
}

.mobile-menu__nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}

body.mobile-menu-open {
  overflow: hidden;
}

.mobile-menu__list > li {
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__list > li > a {
  display: block;
  padding: 0.95rem 2.5rem 0.95rem 0;
  color: var(--color-text-primary);
  font-weight: 600;
}

.mobile-menu__list > li > .mobile-menu__expand {
  position: absolute;
  top: 0.75rem;
  right: 0;
}

.mobile-menu__list li > ul {
  padding: 0 0 0.75rem 0.9rem;
  transition: max-height 0.3s ease;
}

.mobile-menu__list li > ul a {
  display: block;
  padding: 0.4rem 0;
  color: var(--color-text-muted);
}

@media (max-width: 960px) {
  .header-inner-wrap {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
  }

  .header-inner-wrap .site-branding {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .header-inner-wrap > .col-9 {
    flex: 0 0 auto;
    width: auto;
    height: 82px;
  }

  .menu.menu--primary,
  .header-search {
    display: none;
  }

  .header-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button:focus {
  color: #fff;
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.button--secondary {
  background: #fff;
  color: var(--color-trust);
  border-color: var(--color-trust);
}

.button--secondary:hover,
.button--secondary:focus {
  background: var(--color-trust);
  color: #fff;
}

.button--disabled,
.button[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
  pointer-events: none;
}

.section-kicker {
  margin-bottom: 0.8rem;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-type-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem 0.35rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.content-type-kicker--guide {
  background: var(--color-guide);
  color: #fff;
}

.content-type-kicker--recommendation {
  background: var(--color-accent);
  color: #3f3100;
}

.content-type-kicker--tool {
  background: var(--color-primary);
  color: #fff;
}

.single-hero .content-type-kicker--guide {
  background: var(--color-guide);
  color: #fff;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  max-width: 70ch;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(19, 36, 56, 0.98), rgba(43, 70, 62, 0.96));
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.24;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 0;
  text-align: center;
}

.home-hero__eyebrow,
.home-hero__title,
.home-hero__subtitle {
  color: #fff;
}

.home-hero__eyebrow {
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__title {
  max-width: 17ch;
  margin-bottom: 0.65em;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
}

.home-hero__subtitle {
  max-width: 42rem;
  margin-right: auto;
  margin-bottom: 2.25rem;
  margin-left: auto;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.dashboard-section {
  padding: 5rem 0;
}

#home-value,
#tool-recommendations {
  scroll-margin-top: 82px;
}

.dashboard-section--alt,
.content-feed--alt {
  background: var(--color-bg-alt);
}

.dashboard-section--newsletter {
  background: var(--color-trust);
}

.dashboard-section--newsletter .section-kicker,
.dashboard-section--newsletter .section-title,
.dashboard-section--newsletter .section-description {
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.dashboard-grid--tight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 1024px) {
  .dashboard-grid,
  .dashboard-grid--tight,
  .dashboard-split {
    grid-template-columns: 1fr;
  }
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 220px;
  padding: 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-card:hover,
.dashboard-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 58, 95, 0.1);
  border-color: rgba(46, 125, 50, 0.25);
}

.dashboard-card--compact {
  min-height: 180px;
}

.dashboard-card--coming-soon {
  cursor: default;
}

.dashboard-card__badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(244, 180, 0, 0.14);
  color: var(--color-trust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-card__title {
  margin-bottom: 0;
}

.dashboard-card__text {
  color: var(--color-text-muted);
}

.dashboard-card__cta,
.dashboard-card__status {
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 700;
}

.dashboard-card__cta {
  color: var(--color-primary);
}

.dashboard-card__status {
  color: var(--color-text-muted);
}

.content-feed {
  padding: 4rem 0;
}

.content-feed--white,
.content-feed--none {
  background: #fff;
}

.content-feed__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.content-feed__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.content-feed__actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.content-feed__empty {
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .content-feed__header,
  .content-feed__grid {
    grid-template-columns: 1fr;
  }

  .content-feed__header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.content-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}

.content-card:hover,
.content-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(46, 125, 50, 0.32);
  box-shadow: 0 18px 40px rgba(31, 58, 95, 0.14);
}

.content-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.content-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 58, 95, 0.08), rgba(46, 125, 50, 0.08));
}

.content-card__image img,
.content-card__image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card__image img {
  transition: transform 0.35s ease;
}

.content-card:hover .content-card__image img,
.content-card:focus-within .content-card__image img {
  transform: scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
  .content-card,
  .content-card__image img,
  .mobile-menu,
  .mobile-menu-overlay {
    transition: none;
  }
}

.content-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem;
}

.content-card__eyebrow {
  margin-bottom: 0;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-card__eyebrow.content-type-kicker {
  margin-bottom: 0;
}

.content-card__eyebrow.content-type-kicker--guide {
  color: #fff;
}

.content-card__eyebrow.content-type-kicker--recommendation {
  color: #3f3100;
}

.content-card__eyebrow.content-type-kicker--tool {
  color: #fff;
}

.content-card__title {
  margin-bottom: 0;
}

.content-card__excerpt {
  color: var(--color-text-muted);
}

.content-card__meta {
  margin-top: auto;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.archive-hero,
.page-shell {
  padding: 4.5rem 0 2.5rem;
  background: var(--color-bg-alt);
}

.archive-hero__inner,
.page-shell__header {
  max-width: 1200px;
}

.archive-hero__description {
  color: var(--color-text-muted);
}

.single-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #132438, #2b463e);
}

.single-hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.2;
}

.single-hero__content {
  position: relative;
  z-index: 1;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}

.single-hero__title {
  max-width: 16ch;
  color: #fff;
}

.single-body {
  padding: 3rem 0 5rem;
}

.single-article {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}

.single-content p,
.single-content li,
.single-content blockquote {
  color: var(--color-text-primary);
}

.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
  margin-top: 1.3em;
}

.single-meta,
.single-sidebar {
  margin-bottom: 1.5rem;
}

.single-meta__line,
.single-meta__cats,
.single-content .tag-pill {
  color: var(--color-text-muted);
}

.single-meta__cats a {
  color: var(--color-primary);
}

.single-meta__cats a:hover,
.single-meta__cats a:focus {
  color: var(--color-primary-dark);
}

.affiliate-disclaimer {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(244, 180, 0, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(244, 180, 0, 0.12);
  color: var(--color-text-primary);
}

.single-tags {
  margin-top: 1.5rem;
}

.single-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: #fff;
}

.tag-pill:hover,
.tag-pill:focus {
  border-color: var(--color-primary);
}

.single-related {
  padding-top: 2rem;
}

.single-related__title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.related-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.single-related .content-card__image {
  aspect-ratio: 3 / 2;
}

.single-related .content-card__body {
  gap: 0.45rem;
  padding: 0.9rem;
}

.single-related .content-type-kicker {
  padding: 0.25rem 0.5rem 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  border-radius: 5px;
}

.single-related .content-card__title {
  font-size: 1rem;
  line-height: 1.3;
}

.single-related .content-card__excerpt {
  display: none;
}

.single-related .content-card__meta {
  font-size: 0.8rem;
}

@media (min-width: 600px) {
  .related-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .related-post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .single-sidebar .related-post-grid,
  .sidebar .related-post-grid,
  .sidebar-primary .related-post-grid {
    grid-template-columns: 1fr;
  }
}

.single-sidebar .widget,
.sidebar .widget {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.single-sidebar .widget-title,
.sidebar .widget-title,
.footer-widgets .widget-title {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--color-trust);
}

.comments-area {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.comment-list {
  margin: 1rem 0 1.5rem;
}

.comment-body {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.comment-form .submit,
.wpcf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.footer-widgets {
  padding: 4rem 0 2rem;
  background: var(--color-trust);
  color: rgba(255, 255, 255, 0.82);
}

.footer-widgets .widget-title {
  color: #fff;
}

.footer-widgets .wrap {
  display: grid;
  gap: 1.5rem;
}

.footer-widget-col.footer-col-3 {
  text-align: right;
}

.footer-widget-col.footer-col-2 {
  display: flex;
  justify-content: center;
}

.footer-widget-col.footer-col-2 > .widget {
  text-align: left;
}

.footer-widget-col.footer-col-3 .wp-block-buttons,
.footer-widget-col.footer-col-3 .wp-block-social-links {
  justify-content: flex-end;
}

.footer-widget-col.footer-col-1 .custom-logo-link {
  display: inline-flex;
  width: auto;
  max-width: 100%;
}

@media (max-width: 959px) {
  .footer-widgets .wrap {
    gap: 2.5rem;
  }

  .footer-widget-col.footer-col-2 {
    display: block;
  }

  .footer-widget-col,
  .footer-widget-col.footer-col-2 > .widget,
  .footer-widget-col.footer-col-3 {
    text-align: center;
  }

  .footer-widget-col .wp-block-buttons,
  .footer-widget-col .wp-block-social-links {
    justify-content: center;
  }

  .footer-widget-col.footer-col-1 .widget_media_image {
    display: flex;
    justify-content: center;
  }

  .footer-widget-col.footer-col-1 .widget_media_image > a {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
  }
}

@media (min-width: 960px) {
  .footer-widgets .wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-widgets a,
.site-footer a {
  color: #fff;
}

.footer-widgets a:hover,
.footer-widgets a:focus,
.site-footer a:hover,
.site-footer a:focus {
  color: var(--color-accent);
}

.hrg-top-level-categories,
.footer-widgets ul {
  display: grid;
  gap: 0.6rem;
}

.hrg-featured-product,
.hrg-newsletter-placeholder {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.hrg-featured-product__eyebrow,
.hrg-newsletter-placeholder__eyebrow {
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hrg-featured-product__button {
  width: fit-content;
}

.site-footer {
  background: #162845;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
  text-align: center;
}

.site-footer .footer-creds {
  margin: 0;
}

.hrg-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
}

.hrg-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.hrg-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.hrg-popup__dialog {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  background-position: center;
  background-size: cover;
  padding: 1.5rem;
}

.hrg-popup__body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
}

.hrg-popup__media img {
  border-radius: var(--radius-md);
}

.hrg-popup__title {
  font-size: 1.8rem;
}

.hrg-popup__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-text-primary);
}

.hrg-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 768px) {
  .home-hero__content,
  .single-hero__content {
    min-height: auto;
  }

  .single-article,
  .comments-area {
    padding: 1.2rem;
  }

  .hrg-popup__body {
    grid-template-columns: 1fr;
  }
}
