/*
Theme Name: BGND Hello Child
Theme URI: https://blackguynextdoor.com/
Description: Brand shell for the Black Guy Next Door WordPress migration. Built as a Hello Elementor child theme.
Author: Black Guy Next Door
Template: hello-elementor
Version: 0.1.12
Text Domain: bgnd-hello-child
*/

:root {
  --bgnd-ink: #241f1b;
  --bgnd-muted: #6d6258;
  --bgnd-paper: #f7f2ea;
  --bgnd-cream: #fffaf2;
  --bgnd-sage: #d7ddc8;
  --bgnd-rust: #a55332;
  --bgnd-gold: #d2a44d;
  --bgnd-charcoal: #151413;
  --bgnd-line: rgba(36, 31, 27, 0.14);
  --bgnd-radius: 8px;
  --bgnd-serif: "Cormorant Garamond", Georgia, serif;
  --bgnd-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

.bgnd-container,
.site-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.bgnd-wide {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.bgnd-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--bgnd-line);
  background: rgba(255, 250, 242, 0.94);
  backdrop-filter: blur(16px);
}

.bgnd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.bgnd-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.bgnd-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.bgnd-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bgnd-menu a {
  color: var(--bgnd-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.bgnd-menu .menu-item:last-child a,
.bgnd-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--bgnd-ink);
  border-radius: var(--bgnd-radius);
  background: var(--bgnd-ink);
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.bgnd-button--light {
  border-color: rgba(255, 255, 255, 0.75);
  background: #fff;
  color: var(--bgnd-ink);
}

.bgnd-button--outline {
  background: transparent;
  color: var(--bgnd-ink);
}

.bgnd-hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: 96px 0 64px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 16, 14, 0.9) 0%, rgba(18, 16, 14, 0.68) 48%, rgba(18, 16, 14, 0.32) 100%),
    var(--bgnd-hero-image),
    var(--bgnd-charcoal);
  background-position: center;
  background-size: cover;
}

.bgnd-hero__inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.bgnd-eyebrow,
.bgnd-kicker {
  margin: 0 0 12px;
  color: var(--bgnd-rust);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bgnd-hero .bgnd-eyebrow {
  color: var(--bgnd-gold);
}

.bgnd-hero h1,
.bgnd-page-title h1,
.bgnd-section h2 {
  margin: 0;
  font-family: var(--bgnd-serif);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

.bgnd-hero h1 {
  max-width: 760px;
  font-size: clamp(58px, 10vw, 132px);
}

.bgnd-hero p {
  max-width: 680px;
  font-size: 20px;
}

.bgnd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.bgnd-section {
  padding: 82px 0;
}

.bgnd-section--paper {
  background: var(--bgnd-paper);
}

.bgnd-section--sage {
  background: var(--bgnd-sage);
}

.bgnd-section--dark {
  background: var(--bgnd-charcoal);
  color: #fff;
}

.bgnd-section h2,
.bgnd-page-title h1 {
  max-width: 860px;
  font-size: clamp(38px, 6vw, 78px);
}

.bgnd-lead {
  max-width: 760px;
  color: var(--bgnd-muted);
  font-size: 19px;
}

.bgnd-section--dark .bgnd-lead {
  color: rgba(255, 255, 255, 0.76);
}

.bgnd-hero .bgnd-button--outline,
.bgnd-section--dark .bgnd-button--outline {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

.bgnd-hero .bgnd-button--outline.bgnd-button--light,
.bgnd-section--dark .bgnd-button--outline.bgnd-button--light {
  background: transparent;
  color: #fff;
}

.bgnd-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 48px;
  align-items: center;
}

.bgnd-split--reverse {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.bgnd-card-grid,
.bgnd-steps,
.bgnd-testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.bgnd-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bgnd-card,
.bgnd-step,
.bgnd-quote {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--bgnd-line);
  border-radius: var(--bgnd-radius);
  background: #fff;
}

.bgnd-section--sage .bgnd-quote {
  background: rgba(255, 250, 242, 0.74);
}

.bgnd-card h3,
.bgnd-step h3 {
  margin: 0 0 10px;
  font-family: var(--bgnd-serif);
  font-size: 30px;
  line-height: 1;
}

.bgnd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.bgnd-tag {
  padding: 6px 10px;
  border: 1px solid var(--bgnd-line);
  border-radius: 999px;
  color: var(--bgnd-muted);
  font-size: 12px;
  font-weight: 800;
}

.bgnd-card-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--bgnd-rust);
  font-weight: 900;
  text-decoration: none;
}

.bgnd-media,
.bgnd-portrait,
.bgnd-project-image {
  overflow: hidden;
  border-radius: var(--bgnd-radius);
  background: #e5ded3;
}

.bgnd-portrait img,
.bgnd-project-image img,
.bgnd-media img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.bgnd-portrait img {
  aspect-ratio: 4 / 5;
}

.bgnd-project-image img {
  aspect-ratio: 16 / 11;
}

.bgnd-featured-project {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: center;
}

.bgnd-page-title {
  padding: 72px 0 34px;
}

.bgnd-content {
  padding: 34px 0 82px;
}

.bgnd-content :where(h1, h2, h3) {
  font-family: var(--bgnd-serif);
  line-height: 1;
}

.bgnd-footer {
  padding: 56px 0 30px;
  background: var(--bgnd-charcoal);
  color: #fff;
}

.bgnd-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.bgnd-footer h2,
.bgnd-footer h3 {
  margin-top: 0;
  font-family: var(--bgnd-serif);
}

.bgnd-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.bgnd-copyright {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.bgnd-elementor-page .elementor-section-wrap > .elementor-section,
.bgnd-elementor-page .elementor > .elementor-section,
.elementor-section.bgnd-el-section,
.elementor-section.bgnd-el-paper,
.elementor-section.bgnd-el-dark,
.elementor-section.bgnd-el-hero {
  padding: 82px 0;
}

.elementor-section.bgnd-el-hero {
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-color: var(--bgnd-charcoal);
}

.elementor-section.bgnd-el-hero::before {
  background: linear-gradient(90deg, rgba(18, 16, 14, 0.9) 0%, rgba(18, 16, 14, 0.68) 48%, rgba(18, 16, 14, 0.32) 100%);
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.elementor-section.bgnd-el-hero > .elementor-container,
.elementor-section.bgnd-el-dark > .elementor-container,
.elementor-section.bgnd-el-paper > .elementor-container,
.elementor-section.bgnd-el-section > .elementor-container {
  width: min(1120px, calc(100% - 40px));
}

.elementor-section.bgnd-el-hero > .elementor-container {
  position: relative;
  z-index: 1;
}

.bgnd-el-hero .elementor-widget-heading h6 {
  color: var(--bgnd-gold) !important;
  font-family: var(--bgnd-sans) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.bgnd-el-hero .elementor-widget-heading h1 {
  max-width: 760px;
  color: #fff !important;
  font-family: var(--bgnd-serif) !important;
  font-size: clamp(58px, 10vw, 132px) !important;
  line-height: 0.98 !important;
}

.bgnd-el-hero .elementor-widget-text-editor {
  max-width: 760px;
  color: #fff !important;
  font-size: 19px;
}

.bgnd-el-hero .elementor-widget-button,
.bgnd-el-dark .elementor-widget-button {
  display: inline-block;
  width: auto;
  margin-right: 12px;
  margin-bottom: 12px;
}

.bgnd-el-hero .elementor-button,
.bgnd-el-dark .elementor-button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  border-radius: var(--bgnd-radius) !important;
  background: #fff !important;
  color: var(--bgnd-ink) !important;
  font-weight: 800 !important;
}

.bgnd-el-hero .elementor-widget-button:last-child .elementor-button,
.bgnd-el-dark .elementor-widget-button:last-child .elementor-button {
  background: transparent !important;
  color: #fff !important;
}

.elementor-section.bgnd-el-paper {
  background: var(--bgnd-paper);
}

.elementor-section.bgnd-el-dark {
  background: var(--bgnd-charcoal);
  color: #fff;
}

.elementor .bgnd-el-display .elementor-heading-title,
.elementor .bgnd-el-display-small .elementor-heading-title,
.elementor .elementor-widget-heading h1,
.elementor .elementor-widget-heading h2,
.elementor .elementor-widget-heading h3 {
  color: var(--bgnd-ink) !important;
  font-family: var(--bgnd-serif);
  line-height: 0.98;
  letter-spacing: 0;
}

.elementor .bgnd-el-display .elementor-heading-title {
  max-width: 760px;
  color: #fff;
  font-size: clamp(58px, 10vw, 132px);
}

.elementor .bgnd-el-display-small .elementor-heading-title,
.elementor .elementor-widget-heading h1 {
  max-width: 860px;
  color: var(--bgnd-ink);
  font-size: clamp(48px, 8vw, 96px);
}

.elementor-section.bgnd-el-dark .elementor-widget-heading :where(h1, h2, h3),
.elementor-section.bgnd-el-dark .elementor-widget-heading .elementor-heading-title,
.elementor-section.bgnd-el-hero .elementor-widget-heading .elementor-heading-title,
.elementor-section.bgnd-el-dark .elementor-widget-text-editor,
.elementor-section.bgnd-el-hero .elementor-widget-text-editor {
  color: #fff !important;
}

.elementor .bgnd-el-kicker .elementor-heading-title {
  color: var(--bgnd-gold);
  font-family: var(--bgnd-sans);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
}

.elementor-section:not(.bgnd-el-hero):not(.bgnd-el-dark) .bgnd-el-kicker .elementor-heading-title {
  color: var(--bgnd-rust);
}

.elementor-section.bgnd-el-paper .elementor-widget-heading h6,
.elementor-section.bgnd-el-section .elementor-widget-heading h6 {
  color: var(--bgnd-rust) !important;
  font-family: var(--bgnd-sans) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.elementor-section.bgnd-el-dark .elementor-widget-heading h6 {
  color: var(--bgnd-gold) !important;
  font-family: var(--bgnd-sans) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.elementor .bgnd-el-lead {
  max-width: 760px;
  color: var(--bgnd-muted);
  font-size: 19px;
}

.elementor-section.bgnd-el-dark .bgnd-el-lead,
.elementor-section.bgnd-el-hero .bgnd-el-lead {
  color: rgba(255, 255, 255, 0.8);
}

.elementor .elementor-button {
  min-height: 44px;
  border: 1px solid var(--bgnd-ink) !important;
  border-radius: var(--bgnd-radius) !important;
  background: var(--bgnd-ink) !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.elementor .bgnd-el-button-outline .elementor-button {
  background: transparent !important;
  color: var(--bgnd-ink) !important;
}

.elementor .bgnd-el-button-light .elementor-button {
  border-color: #fff !important;
  background: #fff !important;
  color: var(--bgnd-ink) !important;
}

.elementor .bgnd-el-button-outline-light .elementor-button,
.elementor-section.bgnd-el-hero .bgnd-el-button-outline .elementor-button {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: transparent !important;
  color: #fff !important;
}

.elementor-section.bgnd-el-paper .elementor-widget-button,
.elementor-section.bgnd-el-section .elementor-widget-button {
  display: inline-block;
  width: auto;
  margin-right: 12px;
  margin-bottom: 12px;
}

.elementor-section.bgnd-el-paper .elementor-widget-button:last-child .elementor-button,
.elementor-section.bgnd-el-section .elementor-widget-button:last-child .elementor-button {
  background: transparent !important;
  color: var(--bgnd-ink) !important;
}

.elementor-section.bgnd-el-card {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--bgnd-line);
  border-radius: var(--bgnd-radius);
  background: #fff;
}

.elementor-section.bgnd-el-card .elementor-widget-heading h3 {
  color: var(--bgnd-ink);
  font-size: 30px;
}

.bgnd-project-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 16, 14, 0.88) 0%, rgba(18, 16, 14, 0.7) 52%, rgba(18, 16, 14, 0.36) 100%),
    var(--bgnd-hero-image),
    var(--bgnd-charcoal);
  background-position: center;
  background-size: cover;
}

.bgnd-journal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bgnd-post-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--bgnd-line);
  border-radius: var(--bgnd-radius);
  background: #fff;
}

.bgnd-post-card h2,
.bgnd-empty h2 {
  margin-top: 0;
  font-family: var(--bgnd-serif);
  font-size: 34px;
  line-height: 1;
}

.bgnd-post-card a {
  text-decoration: none;
}

.bgnd-empty {
  max-width: 760px;
  padding: 28px;
  border: 1px solid var(--bgnd-line);
  border-radius: var(--bgnd-radius);
  background: #fff;
}

@media (max-width: 860px) {
  .bgnd-container,
  .site-main,
  .bgnd-wide,
  .bgnd-hero__inner {
    width: calc(100% - 32px);
  }

  .bgnd-nav,
  .bgnd-menu,
  .bgnd-actions {
    align-items: flex-start;
  }

  .bgnd-nav {
    flex-direction: column;
    gap: 14px;
    padding: 16px 0 18px;
  }

  .bgnd-brand {
    max-width: 100%;
  }

  .bgnd-brand span {
    font-size: 16px;
  }

  .bgnd-nav nav {
    width: 100%;
  }

  .bgnd-menu {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .bgnd-menu a {
    font-size: 13px;
    line-height: 1.2;
  }

  .bgnd-menu .menu-item:last-child a {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bgnd-ink);
  }

  .bgnd-menu .menu-item:last-child a:hover,
  .bgnd-menu .menu-item:last-child a:focus {
    text-decoration: underline;
  }

  .bgnd-hero {
    min-height: 66vh;
    padding: 74px 0 46px;
  }

  .bgnd-hero h1 {
    font-size: 52px;
    line-height: 1;
  }

  .bgnd-hero p {
    font-size: 18px;
  }

  .bgnd-split,
  .bgnd-split--reverse,
  .bgnd-featured-project,
  .bgnd-card-grid,
  .bgnd-steps,
  .bgnd-testimonials,
  .bgnd-journal-list,
  .bgnd-footer-grid {
    grid-template-columns: 1fr;
  }

  .bgnd-section {
    padding: 58px 0;
  }

  .elementor-section.bgnd-el-hero,
  .elementor-section.bgnd-el-section,
  .elementor-section.bgnd-el-paper,
  .elementor-section.bgnd-el-dark {
    padding: 58px 0;
  }

  .elementor-section.bgnd-el-hero > .elementor-container,
  .elementor-section.bgnd-el-dark > .elementor-container,
  .elementor-section.bgnd-el-paper > .elementor-container,
  .elementor-section.bgnd-el-section > .elementor-container {
    display: flex;
    flex-wrap: wrap !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .elementor-section .elementor-column,
  .elementor-section .elementor-column.elementor-col-50,
  .elementor-section .elementor-column.elementor-col-100 {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .elementor-section .elementor-widget-wrap,
  .elementor-section .elementor-widget,
  .elementor-section .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .elementor-section .elementor-widget-heading,
  .elementor-section .elementor-widget-text-editor,
  .elementor-section .elementor-widget-shortcode,
  .elementor-section .elementor-heading-title,
  .elementor-section .elementor-widget-text-editor,
  .elementor-section .elementor-shortcode,
  .bgnd-inquiry {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .elementor-section .elementor-heading-title,
  .elementor-section .elementor-widget-text-editor {
    max-width: 100% !important;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal !important;
  }

  .elementor-section.bgnd-el-intake-hero .elementor-column + .elementor-column,
  .elementor-section.bgnd-el-paper .elementor-column + .elementor-column {
    margin-top: 28px;
  }

  .bgnd-el-hero .elementor-widget-heading h1,
  .elementor .bgnd-el-display .elementor-heading-title {
    font-size: 46px !important;
    line-height: 1 !important;
  }

  .elementor .bgnd-el-display-small .elementor-heading-title,
  .elementor .elementor-widget-heading h1 {
    max-width: 100%;
    font-size: 38px !important;
    line-height: 1.04 !important;
  }

  .elementor .elementor-widget-heading h2 {
    font-size: 34px !important;
    line-height: 1.04 !important;
  }

  .elementor .bgnd-el-lead,
  .elementor .elementor-widget-text-editor {
    max-width: 100%;
    font-size: 17px;
  }

  .elementor .elementor-widget-button {
    display: inline-block;
    max-width: 100%;
  }

  .elementor .elementor-button,
  .bgnd-button,
  .wp-block-button__link {
    max-width: 100%;
    padding: 11px 15px;
    white-space: normal;
  }
}
