/*
Theme Name: His Hands Thrift
Description: Lightweight Elementor child theme for the His Hands Thrift local site.
Author: RGC Data
Template: hello-elementor
Version: 1.0.12
Text Domain: his-hands
*/

:root {
  --hh-green: #0b5138;
  --hh-green-dark: #073b29;
  --hh-sage: #dce8dd;
  --hh-cream: #fbf6ea;
  --hh-gold: #d7a947;
  --hh-ink: #17211d;
}

html { scroll-behavior: smooth; }
body {
  color: var(--hh-ink);
  background: var(--hh-cream);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3 {
  text-wrap: balance;
}

.hh-topbar a,
.hh-footer a { color: inherit; }

.hh-header {
  position: relative;
  z-index: 20;
  box-shadow: 0 8px 30px rgba(7, 59, 41, .08);
}

.hh-header .elementor-widget-image,
.hh-header .elementor-widget-image img {
  width: 100%;
  max-width: 300px;
}

.hh-header .elementor-widget-image img {
  display: block;
  height: auto;
}

.hh-header .elementor-button {
  background: transparent;
  color: var(--hh-green-dark);
  padding: 10px 12px;
  border-radius: 999px;
}

.hh-header .elementor-button:hover,
.hh-header .elementor-button:focus {
  background: var(--hh-sage);
  color: var(--hh-green-dark);
}

.hh-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 33, 24, .9) 0%, rgba(8, 33, 24, .7) 44%, rgba(8, 33, 24, .16) 76%);
  pointer-events: none;
  z-index: 1;
}

.hh-hero > .e-con-inner {
  position: relative;
  z-index: 2;
}

.hh-hero .elementor-heading-title,
.hh-hero .elementor-widget-text-editor {
  text-shadow: 0 2px 3px rgba(0, 0, 0, .88), 0 7px 20px rgba(0, 0, 0, .58);
}

.hh-hero .elementor-widget-heading:first-child .elementor-heading-title {
  display: inline-block;
  padding: 8px 12px;
  color: #ffffff !important;
  background: rgba(7, 59, 41, .9);
  border-radius: 999px;
  text-shadow: none;
}

.hh-kicker {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
}

.hh-card {
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}

.hh-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(7, 59, 41, .12);
}

.hh-button .elementor-button,
.elementor-button.hh-button {
  background: var(--hh-green);
  color: #fff;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 800;
}

.hh-button-light .elementor-button {
  background: #fff;
  color: var(--hh-green-dark);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 800;
}

.hh-header .hh-button .elementor-button {
  background: transparent;
  color: var(--hh-green-dark);
  padding: 10px 12px;
  box-shadow: none;
}

@media (min-width: 768px) {
  .hh-header > .e-con-inner {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }
  .hh-header > .e-con-inner > .e-con:first-child {
    flex: 0 0 300px;
    width: 300px;
  }
  .hh-header > .e-con-inner > .e-con:last-child {
    flex: 1 1 auto;
    width: auto;
  }
}

.hh-footer { color: rgba(255,255,255,.88); }
.hh-footer .elementor-widget-image,
.hh-footer .elementor-widget-image img {
  width: 100%;
  max-width: 280px;
}
.hh-footer .elementor-widget-image {
  width: 280px !important;
  max-width: 100% !important;
  --container-widget-width: 280px;
  --container-widget-flex-grow: 0;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 16px;
}

.hh-footer-credit {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.hh-footer-credit .elementor-widget-text-editor {
  width: auto !important;
  margin: 0;
}

.hh-footer-credit .elementor-widget-text-editor p {
  margin: 0;
  font-size: 14px;
}

.hh-footer-credit .elementor-widget-image {
  flex: 0 0 auto;
  width: 190px !important;
  max-width: 190px !important;
  --container-widget-width: 190px;
  padding: 8px 10px;
  border-radius: 10px;
}

.hh-footer-credit .elementor-widget-image img {
  width: 100%;
  max-width: none;
}

@media (min-width: 768px) {
  .hh-footer > .e-con-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 42px;
  }
  .hh-footer > .e-con-inner > .e-con {
    width: 100% !important;
    min-width: 0;
  }
  .hh-footer-credit {
    grid-column: 1 / -1;
  }
  .hh-footer-credit > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center;
    gap: 14px;
  }
  .hh-footer-credit .elementor-widget-image {
    flex: 0 0 190px;
  }
}

@media (max-width: 767px) {
  .hh-topbar .elementor-container,
  .hh-header { text-align: center; }
  .hh-topbar > .e-con-inner {
    gap: 4px;
  }
  .hh-topbar .elementor-widget-text-editor,
  .hh-topbar .elementor-widget-text-editor p {
    width: 100%;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    text-align: center !important;
  }
  .hh-header {
    padding: 14px 16px !important;
  }
  .hh-header > .e-con-inner {
    gap: 14px;
  }
  .hh-header .elementor-widget-image,
  .hh-header .elementor-widget-image img {
    margin-inline: auto;
    max-width: 195px;
  }
  .hh-header > .e-con-inner > .e-con:last-child > .e-con-inner {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .hh-header > .e-con-inner > .e-con:last-child > .e-con-inner > .elementor-widget-button {
    grid-column: span 2;
    width: auto !important;
    min-width: 0;
  }
  .hh-header > .e-con-inner > .e-con:last-child > .e-con-inner > .elementor-widget-button:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .hh-header > .e-con-inner > .e-con:last-child > .e-con-inner > .elementor-widget-button:nth-child(5) {
    grid-column: 4 / span 2;
  }
  .hh-header .elementor-button,
  .hh-header .hh-button .elementor-button {
    display: block;
    width: 100%;
    padding: 10px 6px;
    font-size: 13px;
    line-height: 1.15;
  }
  .hh-header .elementor-button-text {
    white-space: nowrap;
  }
  .hh-footer-credit {
    text-align: center;
  }
  .hh-footer-credit .elementor-widget-text-editor {
    width: 100% !important;
  }
  .hh-footer-credit .elementor-widget-text-editor p {
    text-align: center;
  }
  .hh-hero {
    background-position: 70% center !important;
  }
  .hh-hero::before {
    background: linear-gradient(180deg, rgba(8, 33, 24, .9) 0%, rgba(8, 33, 24, .72) 72%, rgba(8, 33, 24, .4) 100%);
  }
}
