/*
Theme Name: Cities Agencies
Theme URI: https://www.citiesagencies.com/
Author: Bikash Mahto
Description: An original editorial WordPress theme for home improvement, home services, renovation guides, and buying-advice publications.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homefront-advisor
Tags: blog, news, custom-logo, featured-images, grid-layout, one-column, two-columns, right-sidebar
*/

:root {
  --hf-ink: #151413;
  --hf-muted: #5c5b57;
  --hf-soft: #f6f1e9;
  --hf-paper: #fffdfa;
  --hf-line: #ded8cc;
  --hf-green: #115a4a;
  --hf-clay: #a3442b;
  --hf-gold: #c58b25;
  --hf-blue: #4f7f8b;
  --hf-black: #0f0f0f;
  --hf-radius: 8px;
  --hf-shadow: 0 16px 40px rgba(20, 20, 20, 0.08);
  --hf-max: 1180px;
  --hf-serif: Georgia, "Times New Roman", serif;
  --hf-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--hf-paper);
  color: var(--hf-ink);
  font-family: var(--hf-sans);
  font-size: 16px;
  line-height: 1.6;
}

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

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

a:hover,
a:focus {
  color: var(--hf-clay);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  display: inline-flex;
  padding: 10px 14px;
  background: var(--hf-black);
  color: #fff;
  border-radius: var(--hf-radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hf-paper);
  border-bottom: 1px solid var(--hf-line);
}

.utility-bar {
  background: var(--hf-black);
  color: #fff;
  font-size: 0.78rem;
}

.utility-bar__inner,
.masthead__inner,
.topic-nav__inner,
.site-footer__inner,
.section-inner {
  width: min(var(--hf-max), calc(100% - 32px));
  margin-inline: auto;
}

.utility-bar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.utility-bar a {
  color: #fff;
  text-decoration: none;
}

.utility-bar__links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.masthead {
  background: var(--hf-paper);
}

.masthead__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: end;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-height: 68px;
  width: auto;
}

.site-title {
  color: var(--hf-black);
  font-family: var(--hf-serif);
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-title__accent {
  color: var(--hf-green);
  font-family: var(--hf-sans);
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  font-weight: 800;
  text-transform: uppercase;
}

.primary-navigation {
  justify-self: auto;
}

.primary-navigation .menu > li {
  display: flex;
  align-items: center;
  min-height: 78px;
}

.primary-navigation ul,
.footer-menu ul {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a,
.footer-menu a {
  color: var(--hf-ink);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-navigation .menu > .menu-item-has-children > a,
.primary-navigation .menu > .page_item_has_children > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.primary-navigation .menu > .menu-item-has-children > a::after,
.primary-navigation .menu > .page_item_has_children > a::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.primary-navigation a:hover,
.primary-navigation a:focus,
.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--hf-clay);
}

.primary-navigation .sub-menu,
.primary-navigation .children {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 22px;
  width: 100%;
  padding: 24px max(16px, calc((100vw - var(--hf-max)) / 2));
  margin: 0;
  list-style: none;
  background: #fff;
  border-top: 1px solid var(--hf-line);
  border-bottom: 1px solid var(--hf-line);
  box-shadow: var(--hf-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.primary-navigation .sub-menu .sub-menu,
.primary-navigation .children .children {
  position: static;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  width: auto;
  padding: 8px 0 0 14px;
  border: 0;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
}

.primary-navigation .menu > .menu-item-has-children:hover > .sub-menu,
.primary-navigation .menu > .menu-item-has-children:focus-within > .sub-menu,
.primary-navigation .menu > .page_item_has_children:hover > .children,
.primary-navigation .menu > .page_item_has_children:focus-within > .children {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.primary-navigation .sub-menu li,
.primary-navigation .children li {
  min-width: 0;
}

.primary-navigation .sub-menu a,
.primary-navigation .children a {
  display: block;
  padding: 10px 0;
  color: var(--hf-ink);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.primary-navigation .sub-menu .sub-menu a,
.primary-navigation .children .children a {
  color: var(--hf-muted);
  font-size: 0.84rem;
  font-weight: 750;
}
.primary-navigation a:hover,
.primary-navigation a:focus,
.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--hf-clay);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(260px, 24vw);
  border: 1px solid var(--hf-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.header-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 9px 4px 9px 14px;
  background: transparent;
}

.header-search button,
.search-form button {
  border: 0;
  background: var(--hf-green);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hf-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--hf-ink);
  content: "";
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(4px);
}

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

.topic-nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  overflow-x: auto;
}

.topic-nav__label {
  flex: 0 0 auto;
  color: var(--hf-green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topic-nav a {
  flex: 0 0 auto;
  color: var(--hf-ink);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.topic-nav a:hover,
.topic-nav a:focus {
  color: var(--hf-clay);
}

.home-hero {
  background: var(--hf-soft);
  border-bottom: 1px solid var(--hf-line);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 48px;
  align-items: end;
  padding: clamp(42px, 7vw, 84px) 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--hf-clay);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-hero h1,
.page-title,
.entry-title {
  margin: 0;
  color: var(--hf-black);
  font-family: var(--hf-serif);
  font-weight: 700;
  line-height: 1.04;
}

.home-hero h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.home-hero__intro {
  max-width: 630px;
  margin: 20px 0 0;
  color: #393632;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}
.top-agencies {
  padding: 16px;
  border-radius: var(--hf-radius);
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid rgba(21, 20, 19, 0.08);
}
.top-agencies-title {
  margin: 8px 0 8px;
  font-family: var(--hf-serif);
  font-size: 1.35rem;
  line-height: 1.12;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hf-line);
}
.top-agencies-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.top-agencies-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--hf-muted);
  font-weight: 700;
}

.top-agencies-list li::before {
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 8px;
  background: var(--hf-gold);
  content: "";
}
.proof-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.proof-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--hf-muted);
  font-weight: 700;
}

.proof-list li::before {
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 8px;
  background: var(--hf-gold);
  content: "";
}

.home-hero__visual {
  position: relative;
}

.home-hero__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--hf-radius);
  box-shadow: var(--hf-shadow);
}

.hero-stat {
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: min(218px, calc(100% - 36px));
  padding: 16px;
  border-radius: var(--hf-radius);
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid rgba(21, 20, 19, 0.08);
}

.hero-stat strong {
  display: block;
  color: var(--hf-green);
  font-family: var(--hf-serif);
  font-size: 2rem;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 5px;
  color: var(--hf-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.quick-links {
  padding: 38px 0;
  background: #fff;
}

.quick-links__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.service-link {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  min-height: 94px;
  color: var(--hf-ink);
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  background: var(--hf-paper);
  text-decoration: none;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-link:hover,
.service-link:focus {
  transform: translateY(-2px);
  border-color: var(--hf-green);
  box-shadow: 0 10px 24px rgba(17, 90, 74, 0.1);
}

.service-link img {
  width: 74px;
  height: 94px;
  object-fit: cover;
}

.service-link span {
  padding: 14px;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.25;
}

.content-band {
  padding: clamp(42px, 6vw, 72px) 0;
}

.content-band--tinted {
  background: var(--hf-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--hf-black);
}

.section-heading h2 {
  margin: 0 0 12px;
  font-family: var(--hf-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.section-heading p {
  max-width: 520px;
  margin: 0 0 16px;
  color: var(--hf-muted);
}

.section-heading a {
  margin-bottom: 16px;
  color: var(--hf-green);
  font-weight: 850;
  white-space: nowrap;
  text-decoration: none;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.tabs button {
  border: 1px solid var(--hf-line); 
  border-radius: 8px;
  background: #fff;
  color: var(--hf-ink);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 10px 18px;
}

.tabs button.is-active {
  border-color: var(--hf-black);
  background: var(--hf-black);
  color: #fff;
}

.editors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.editors-grid .article-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-bottom: 1px solid var(--hf-line);
  background: transparent;
}

.article-card[hidden] {
  display: none;
}

.article-card__image {
  display: block;
  margin-bottom: 13px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  border-radius: var(--hf-radius);
  background: #ece5d8;
}

.article-card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 180ms ease;
}

.article-card:hover .article-card__image img {
  transform: scale(1.025);
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--hf-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.article-card__title {
  margin: 8px 0 8px;
  font-family: var(--hf-serif);
  font-size: 1.35rem;
  line-height: 1.12;
}

.article-card__title a {
  text-decoration: none;
}

.article-card__excerpt {
  margin: 0 0 14px;
  color: var(--hf-muted);
}

.article-card__byline {
  margin-top: auto;
  padding-bottom: 14px;
  color: var(--hf-muted);
  font-size: 0.84rem;
}

.editors-grid .article-card:first-child .article-card__title {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.topic-section {
  display: grid;
  grid-template-columns: 0.92fr 1.5fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--hf-line);
}

.topic-section:first-of-type {
  border-top: 0;
}

.topic-section__intro {
  position: sticky;
  top: 150px;
  align-self: start;
}

.topic-section__intro h3 {
  margin: 0;
  font-family: var(--hf-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.topic-section__intro p {
  color: var(--hf-muted);
}

.topic-section__intro a {
  color: var(--hf-green);
  font-weight: 850;
  text-decoration: none;
}

.article-list {
  display: grid;
  gap: 20px;
}

.article-row {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hf-line);
}

.article-row__image {
  border-radius: var(--hf-radius);
  overflow: hidden;
  background: #ece5d8;
}

.article-row__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.article-row__title {
  margin: 4px 0 8px;
  font-family: var(--hf-serif);
  font-size: 1.35rem;
  line-height: 1.16;
}

.article-row__title a {
  text-decoration: none;
}

.newsletter-band {
  padding-top: 80px;
  background: var(--hf-green);
  color: #fff;
}

.newsletter-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.newsletter-band h2 {
  margin: 0;
  font-family: var(--hf-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.newsletter-band p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 13px 16px;
}

.newsletter-form button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  margin-top: 1.8rem;
  border: 0;
  border-radius: 8px;
  background: var(--hf-line);
  color: var(--hf-black);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.page-header {
  padding: clamp(40px, 7vw, 76px) 0 30px;
  background: var(--hf-soft);
  border-bottom: 1px solid var(--hf-line);
}

.page-title {
  max-width: 1280px;
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.archive-description,
.page-header p {
  max-width: 720px;
  margin-top: 14px;
  color: var(--hf-muted);
  font-size: 1.05rem;
}

.posts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.sidebar {
  position: sticky;
  top: 152px;
  display: grid;
  gap: 18px;
}

.widget,
.sidebar-card {
  padding: 22px;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  background: #fff;
}

.widget h2,
.widget h3,
.sidebar-card h2,
.sidebar-card h3 {
  margin-top: 0;
  font-family: var(--hf-serif);
  line-height: 1.15;
}

.widget ul {
  padding-left: 18px;
}

.entry-hero {
  padding: clamp(40px, 7vw, 80px) 0 28px;
  background: var(--hf-soft);
  border-bottom: 1px solid var(--hf-line);
}

.entry-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.85fr);
  gap: 44px;
  align-items: center;
}

.entry-title {
  font-size: clamp(2rem, 5.2vw, 4.8rem);
}

.entry-summary {
  margin-top: 18px;
  color: var(--hf-muted);
  font-size: 1.12rem;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 20px;
  color: var(--hf-muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.entry-hero__image {
  border-radius: var(--hf-radius);
  overflow: hidden;
  box-shadow: var(--hf-shadow);
}

.entry-hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 52px;
  align-items: start;
}

.entry-content {
  font-size: 1.06rem;
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--hf-serif);
  line-height: 1.16;
}

.entry-content h2 {
  font-size: 2rem;
}

.entry-content h3 {
  font-size: 1.45rem;
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 5px solid var(--hf-green);
  background: var(--hf-soft);
  color: #37342f;
  font-family: var(--hf-serif);
  font-size: 1.25rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  border: 1px solid var(--hf-line);
  text-align: left;
}

.entry-content th {
  background: var(--hf-soft);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.entry-tags a {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--hf-line);
  border-radius: 8px;
  color: var(--hf-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.author-box {
  display: grid;
  gap: 10px;
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  background: var(--hf-soft);
}

.author-box h2 {
  margin: 0;
  font-family: var(--hf-serif);
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.post-navigation a {
  display: block;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  background: #fff;
  font-weight: 850;
  text-decoration: none;
}

.search-form {
  display: flex;
  max-width: 620px;
  border: 1px solid var(--hf-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 13px 16px;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 34px;
}

.page-numbers {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hf-line);
  border-radius: 8px;
  text-decoration: none;
}

.page-numbers.current {
  background: var(--hf-black);
  color: #fff;
}

.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hf-line);
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-body {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  background: #fff;
}

.comment-respond input:not([type="submit"]),
.comment-respond textarea {
  width: 100%;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  padding: 12px;
}

.comment-respond input[type="submit"] {
  border: 0;
  border-radius: 8px;
  background: var(--hf-green);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 12px 18px;
}

.site-footer {
  background: var(--hf-ink);
  color: var(--hf-paper);
}

.site-footer__inner {
  display: grid;
  padding: 34px 0;
}
.footer__logos {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-footer a {
  color: var(--hf-paper);
}

.site-footer p {
	max-width: 620px;
	color: var(--hf-paper);
	font-weight: 700;
	padding: 0.8rem;
}

.site-footer__topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.site-footer .site-footer__topics a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
  text-decoration: none;
}

.sidebar-card .site-footer__topics a {
  color: var(--hf-green);
  font-weight: 800;
  text-decoration: none;
}

.site-footer__bottom {
  padding: 18px 0;
  border-top: 1px solid rgb(17 90 74);
  color: var(--hf-paper);
  font-size: 1rem;
  font-weight: 600;
}

.alignwide {
  max-width: 1080px;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-caption,
.gallery-caption,
.bypostauthor {
  color: inherit;
}

@media (max-width: 1060px) {
  .masthead__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
	justify-items: start;
  }

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

   .primary-navigation {
    grid-column: 1 / -1;
    position: fixed;
    inset: 115px 16px auto;
    display: none;
    max-height: calc(100vh - 132px);
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--hf-line);
    border-radius: var(--hf-radius);
    background: #fff;
    box-shadow: var(--hf-shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    gap: 12px;
  }

  .primary-navigation .menu > li {
    display: block;
    min-height: 0;
  }

  .primary-navigation .menu > .menu-item-has-children > a,
  .primary-navigation .menu > .page_item_has_children > a {
    justify-content: space-between;
  }

  .primary-navigation .sub-menu,
  .primary-navigation .children {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: auto;
    padding: 8px 0 0 14px;
    margin-top: 8px;
    border: 0;
    border-left: 2px solid var(--hf-line);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .primary-navigation .sub-menu a,
  .primary-navigation .children a {
    padding: 7px 0;
    font-size: 0.9rem;
  }


  .site-branding {
    grid-column: 2;
  }

  .header-search {
    grid-column: 3;
    justify-self: end;
    width: min(280px, 34vw);
  }

  .home-hero__grid,
  .entry-hero__grid,
  .newsletter-band__grid,
  .posts-layout,
  .entry-layout,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .topic-section__intro {
    position: static;
  }

  .editors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .utility-bar__inner {
    justify-content: center;
  }

  .utility-bar__links {
    display: none;
  }

  .masthead__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
	justify-items: start;
  }

  .site-branding {
    min-width: 0;
  }

  .site-title {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .header-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .primary-navigation {
    inset: 128px 0px auto;
  }

  .home-hero h1 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .home-hero__grid {
    gap: 28px;
  }

  .quick-links__grid,
  .editors-grid,
  .posts-grid,
  .topic-section {
    grid-template-columns: 1fr;
  }

  .editors-grid .article-card:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .article-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
  }

  .article-row__title {
    font-size: 1.12rem;
  }

  .newsletter-form,
  .search-form,
  .post-navigation {
    grid-template-columns: 1fr;
    flex-direction: column;
    border-radius: var(--hf-radius);
  }

  .newsletter-form button,
  .search-form button {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .site-footer__topics {
    grid-template-columns: 1fr;
  }
	.footer-menu ul {
	display: flex;
    flex-direction: column;
	}
}

.homepage-agency-container .agency-card {
    border: 1px solid rgba(217,217,219,.6392156863);
    background: #fff;
    border-radius: 8px;
    transition: border .5s ease,box-shadow .5s ease,transform .5s ease
}

.homepage-agency-container .agency-card:hover {
 transform: translateY(-2px);
  border-color: var(--hf-green);
  box-shadow: 0 10px 24px rgba(17, 90, 74, 0.1);
}

.homepage-agency-container .agency-card:hover .agency-name {
    color: var(--hf-clay); !important
}

.homepage-agency-container .agency-card .agency-top {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 12px;
}

@media only screen and (min-width: 768px) {
    .homepage-agency-container .agency-card .agency-top {
        height: 188px;
    }
}

.homepage-agency-container .agency-card .agency-top .thumbnail img {
    min-width: 118px;
    min-height: 118px;
    max-width: 118px;
    max-height: 118px;
    border-radius: 8px;
    border: 1px solid rgba(217,217,219,.6392156863)
}

.homepage-agency-container .agency-card .agency-top .agency-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.homepage-agency-container .agency-card .agency-top .agency-info .agency-name {
    font-family: var(--hf-serif);
    font-weight: 700;
    font-size: 22px;
    line-height: 28px;
    letter-spacing: -0.03em;
    vertical-align: bottom
}

.homepage-agency-container .agency-card .agency-top .agency-info .agency-excerpt {
  color: var(--hf-muted);
  font-family: var(--hf-sans);
  font-weight: normal;
  font-size: 16px;
  line-height: 20px;
  height: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 140px;
}

.homepage-agency-container .agency-card .agency-bottom {
    background: var(--hf-soft);
    border-top: 1px solid rgba(217,217,219,.6392156863);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 0 0 8px 8px
}

.homepage-agency-container .agency-card .agency-bottom .agency-headquarter {
    color: var(--hf-muted);
    font-weight: 500;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0%
}

.homepage-agency-container .agency-card .agency-bottom .agency-website span.visit-website-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: var(--hf-clay);
}

.homepage-agency-container .agency-card .agency-bottom .agency-website span.visit-website-text svg {
    width: 28px;
    height: 28px;
}

.homepage-agency-container .agency-card .agency-bottom .agency-website span.visit-website-text svg path {
    fill: #a85744;
}
