/* A page drawn as an article (template-parts/public-guide-article.php, and
   the yard guides in template-parts/public-yard-guide.php), like an Airbnb
   Resources post: one reading column, a wide rounded picture, quiet cards and
   a numbered line of steps. The guides and the About page load it
   (happytask_public_article_styles()), after public-pages.css for its tokens
   and button. */

.htg {
  --htg-col: 760px;
  --htg-wide: 1040px;
  --htg-soft: #5c5853;
  --htg-line: #ebe6df;
  background: #fff;
  color: var(--ht-ink);
  padding-bottom: 24px;
}

/* Head: eyebrow, big heading, lead and small facts, centered in the column. */
.htg-head {
  max-width: var(--htg-col);
  margin: 0 auto;
  padding: 64px var(--page-inset) 32px;
  text-align: center;
}
.htg-eyebrow {
  margin: 0 0 12px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ht-orange-dark);
}
.htg-h1 {
  margin: 0 0 16px;
  font-size: 48px; line-height: 1.08; font-weight: 700; letter-spacing: -0.025em;
  color: var(--ht-ink);
}
.htg-lead {
  margin: 0 auto 20px; max-width: 600px;
  font-size: 20px; line-height: 1.5; color: var(--htg-soft);
}
.htg-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.htg-facts li {
  padding: 6px 14px; border-radius: 999px;
  background: #f6f3ef; font-size: 14px; font-weight: 500; color: var(--ht-ink);
}

/* The About page's heading: the sentence that says what HappyTask is. The
   comma is for search and screen readers only. */
.htg-h1.ht-brand-line .ht-brand-line__name { display: block; }
.htg-h1.ht-brand-line .ht-brand-line__task { color: var(--ht-orange); }
.htg-h1.ht-brand-line .ht-brand-line__comma {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.htg-h1.ht-brand-line .ht-brand-line__rest {
  display: block; margin-top: 10px;
  font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em;
}
.htg-h1.ht-brand-line .ht-brand-line__rest::first-letter { text-transform: uppercase; }

/* The picture: a map, the Google profile card and the HappyTask page. */
.htg-hero {
  max-width: var(--htg-wide);
  margin: 0 auto 8px;
  padding: 0 var(--page-inset);
}
.htg-hero__art {
  position: relative;
  height: 460px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff4e6 0%, #ffe2bf 100%);
}
.htg-hero__map {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.htg-hero__card {
  position: absolute; z-index: 2; left: 6%; bottom: 44px;
  display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; row-gap: 2px;
  width: 300px; padding: 18px;
  border-radius: 18px; background: #fff;
  box-shadow: 0 2px 6px rgba(26, 22, 18, 0.08), 0 18px 40px rgba(26, 22, 18, 0.16);
}
.htg-hero__avatar {
  grid-row: 1 / span 3;
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #f7b267 0 30%, #f7880c 31% 100%);
}
.htg-hero__name { font-size: 16px; font-weight: 700; color: var(--ht-ink); }
.htg-hero__stars { font-size: 13px; color: #f5a524; letter-spacing: 1px; }
.htg-hero__stars span { color: var(--ht-ink); font-weight: 600; letter-spacing: 0; margin-right: 2px; }
.htg-hero__kind { font-size: 13px; color: var(--htg-soft); }
.htg-hero__buttons {
  grid-column: 1 / -1;
  display: flex; gap: 8px; margin-top: 12px;
}
.htg-hero__buttons span {
  flex: 1; padding: 8px 0; border-radius: 999px; text-align: center;
  border: 1px solid var(--htg-line); font-size: 13px; font-weight: 600; color: var(--ht-ink);
}
.htg-hero__buttons .is-lit {
  border-color: var(--ht-orange); background: var(--ht-orange); color: #fff;
  box-shadow: 0 0 0 5px rgba(247, 136, 12, 0.22);
}
.htg-hero__arrow {
  position: absolute; left: calc(6% + 250px); bottom: 150px;
  width: 140px; height: 70px;
}
.htg-hero__phone {
  position: absolute; right: 7%; top: 40px; bottom: -60px;
  width: 270px;
  border: 8px solid #1a1612; border-radius: 40px;
  overflow: hidden; background: #fff;
  box-shadow: 0 24px 60px rgba(26, 22, 18, 0.25);
  transform: rotate(3deg);
}
.htg-hero__phone img { display: block; width: 100%; height: auto; }

/* A shot: a real screen of the sample HappyTask page beside a drawn card. */
.htg-hero__dot { position: absolute; border-radius: 50%; background: rgba(247, 136, 12, 0.14); }
.htg-hero__dot--one { width: 340px; height: 340px; left: -90px; top: -120px; }
.htg-hero__dot--two { width: 220px; height: 220px; right: 30%; bottom: -110px; }
.htg-hero__art--shot .htg-hero__card { bottom: auto; top: 50%; transform: translateY(-50%); }
.htg-hero__art--shot .htg-hero__arrow { bottom: auto; top: 34%; }
.htg-hero__phone--bottom { top: auto; bottom: 40px; }
.htg-hero__badge {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--ht-orange); background: #fff6eb;
  box-shadow: 0 0 0 5px rgba(247, 136, 12, 0.18);
  font-size: 13px; font-weight: 600; color: var(--ht-ink);
}
.htg-hero__badge svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--ht-ink); }
.htg-hero__card.htg-hero__card--bill { grid-template-columns: 1fr; row-gap: 8px; }
.htg-hero__title { font-size: 16px; font-weight: 700; color: var(--ht-ink); margin-bottom: 4px; }
.htg-hero__line {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--htg-soft);
}
.htg-hero__line span:last-child { color: var(--ht-ink); font-weight: 600; }
.htg-hero__line.is-total {
  margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--htg-line);
  font-size: 16px; font-weight: 700; color: var(--ht-ink);
}
.htg-hero__line.is-total span:last-child { font-size: 18px; }
.htg-hero__tag {
  justify-self: start; margin-top: 4px; padding: 5px 12px; border-radius: 999px;
  background: var(--ht-orange-tint); font-size: 12px; font-weight: 600; color: var(--ht-orange-dark);
}
.htg-caption {
  margin: 12px 0 0; text-align: center;
  font-size: 14px; color: var(--htg-soft);
}

/* The reading column. */
.htg-body {
  max-width: var(--htg-col);
  margin: 0 auto;
  padding: 40px var(--page-inset) 0;
}
.htg-answer {
  margin: 0 0 56px;
  font-size: 20px; line-height: 1.6; color: var(--ht-ink);
}
.htg-h2 {
  margin: 0 0 24px;
  font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em;
  color: var(--ht-ink);
}

/* Prices: one quiet card a service, each a link to its page. */
.htg-prices {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin: 0 0 64px; padding: 0; list-style: none;
}
.htg-price {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 18px 20px; border: 1px solid var(--htg-line); border-radius: 18px;
  color: var(--ht-ink); text-decoration: none;
}
.htg-price:hover { color: var(--ht-ink); border-color: var(--ht-ink); text-decoration: none; }
.htg-price__name { font-size: 17px; font-weight: 600; color: var(--ht-ink); }
.htg-price__range { font-size: 15px; color: var(--htg-soft); }

/* Cards: quiet, with an icon each; as many in a row as fit. */
.htg-reasons {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
  margin: 0 0 64px; padding: 0; list-style: none;
}
.htg-reasons--many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.htg-reason {
  padding: 22px 20px;
  border: 1px solid var(--htg-line); border-radius: 20px;
}
.htg-reason__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--ht-orange-tint); color: var(--ht-orange-dark);
}
.htg-reason__icon svg { width: 24px; height: 24px; }
.htg-reason__name { margin: 0 0 6px; font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--ht-ink); }
.htg-reason__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--htg-soft); }

/* Steps: big numbers down one line. */
.htg-steps {
  margin: 0 0 40px; padding: 0; list-style: none;
}
.htg-step {
  position: relative;
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding-bottom: 32px;
}
.htg-step:not(:last-child)::before {
  content: ''; position: absolute; left: 23px; top: 52px; bottom: 4px;
  border-left: 2px dashed #f2cfa5;
}
.htg-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ht-orange); color: #fff;
  font-size: 20px; font-weight: 700;
}
.htg-step__body { padding-top: 10px; }
.htg-step__name { margin: 0 0 6px; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ht-ink); }
.htg-step__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--htg-soft); }
.htg-step__link {
  display: inline-block; margin-top: 10px;
  font-size: 16px; font-weight: 600; color: var(--ht-orange-dark); text-decoration: none;
}
.htg-step__link:hover { color: var(--ht-orange-dark); text-decoration: underline; }
.htg-step--callout .htg-step__body {
  padding: 18px 20px; border-radius: 18px;
  background: #fff6eb; border: 1px solid #f8dcb8;
}

/* What to know: a soft gray box. */
.htg-note {
  margin: 0 0 40px; padding: 24px 28px;
  border-radius: 20px; background: #f6f3ef;
}
.htg-note__h { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--ht-ink); }
.htg-note p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--htg-soft); }
.htg-note a { color: var(--ht-orange-dark); font-weight: 600; }
.htg-note__link { display: inline-block; margin-top: 10px; font-size: 16px; text-decoration: none; }
.htg-note a:hover { color: var(--ht-orange-dark); text-decoration: underline; }

/* The About page's story (its page record's words) and where we help. */
.htg-story { margin: 0 0 56px; }
.htg-story__h { margin: 28px 0 8px; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ht-ink); }
.htg-story__h:first-child { margin-top: 0; }
.htg-story p, .htg-text { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--htg-soft); }
.htg-areas {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 4px 0 56px; padding: 0; list-style: none;
}
.htg-areas a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--htg-line); font-size: 15px; font-weight: 500;
  color: var(--ht-ink); text-decoration: none;
}
.htg-areas a:hover { color: var(--ht-ink); border-color: var(--ht-ink); text-decoration: none; }

.htg-go { margin: 0 0 72px; text-align: center; }

/* Questions: one column with hairlines. */
.htg-faq { margin: 0 0 48px; }
.htg-faq__item { padding: 20px 0; border-bottom: 1px solid var(--htg-line); }
.htg-faq__item:first-child { padding-top: 0; }
.htg-faq dt { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--ht-ink); }
.htg-faq dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--htg-soft); }
.htg-crumbs { max-width: none; margin: 0 0 40px; padding: 0; }

@media (max-width: 860px) {
  .htg-hero__art { height: 400px; }
  .htg-hero__map { inset: 0; width: 100%; }
  .htg-hero__arrow { display: none; }
  .htg-hero__phone { right: 5%; width: 210px; top: 36px; }
  .htg-hero__card { left: 5%; width: 270px; }
}

@media (max-width: 640px) {
  .htg-head { padding-top: 36px; padding-bottom: 24px; }
  .htg-h1 { font-size: 34px; }
  .htg-h1.ht-brand-line .ht-brand-line__rest { font-size: 20px; }
  .htg-prices { grid-template-columns: 1fr; margin-bottom: 48px; }
  .htg-hero__card.htg-hero__card--bill { grid-template-columns: 1fr; row-gap: 6px; }
  .htg-hero__title { font-size: 14px; }
  .htg-hero__line { font-size: 12px; }
  .htg-hero__line.is-total { font-size: 14px; }
  .htg-hero__line.is-total span:last-child { font-size: 15px; }
  .htg-hero__badge { font-size: 12px; padding: 6px 10px; margin-top: 10px; }
  .htg-hero__phone--bottom { top: auto; bottom: 22px; }
  .htg-story p, .htg-text { font-size: 16px; }
  .htg-lead { font-size: 18px; }
  .htg-hero__art { height: 340px; border-radius: 22px; }
  .htg-hero__phone { right: -34px; top: 22px; width: 168px; border-width: 6px; border-radius: 30px; }
  .htg-hero__card { left: 14px; bottom: 22px; width: 214px; padding: 14px; grid-template-columns: 38px 1fr; column-gap: 10px; }
  .htg-hero__name { line-height: 1.25; }
  .htg-hero__avatar { width: 38px; height: 38px; }
  .htg-hero__name { font-size: 14px; }
  .htg-hero__kind, .htg-hero__stars { font-size: 12px; }
  .htg-hero__buttons span { font-size: 12px; padding: 7px 0; }
  .htg-body { padding-top: 32px; }
  .htg-answer { font-size: 18px; margin-bottom: 44px; }
  .htg-h2 { font-size: 26px; }
  .htg-reasons { grid-template-columns: 1fr; margin-bottom: 48px; }
  .htg-step { grid-template-columns: 40px 1fr; gap: 14px; }
  .htg-step__num { width: 40px; height: 40px; font-size: 18px; }
  .htg-step:not(:last-child)::before { left: 19px; top: 44px; }
  .htg-step__body { padding-top: 7px; }
  .htg-step__name { font-size: 18px; }
  .htg-step__text { font-size: 16px; }
  .htg-step--callout .htg-step__body { padding: 14px 16px; }
}

/* The yard guides (template-parts/public-yard-guide.php): the main answer is
   the lead, one wide photo, and each section's answer right under its
   heading. */
.hty-lead { max-width: 680px; color: var(--ht-ink); }
.hty-hero img, .htg-hero--photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 1440 / 600; object-fit: cover;
  border-radius: 28px; background: #f6f3ef;
}
.hty-section { margin: 0 0 56px; }
.hty .htg-h2.hty-h2 { margin-bottom: 10px; }
.hty-answer { margin: 0 0 24px; font-size: 18px; line-height: 1.6; color: var(--ht-ink); }
.hty-section > .hty-answer:last-child { margin-bottom: 0; }
.hty .htg-reasons, .hty .htg-steps { margin-bottom: 0; }
.hty-seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hty-when { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ht-orange-dark); }
.hty-steps .htg-step:last-child { padding-bottom: 0; }
.hty-steps .htg-step__body { padding-top: 11px; }
.hty-callout {
  padding: 22px 24px; border-radius: 20px;
  background: #fff6eb; border: 1px solid #f8dcb8;
}
.hty-callout .hty-answer { margin-bottom: 16px; }
.hty-photos {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  margin: 0; padding: 0; list-style: none;
}
.hty-photo { padding-bottom: 20px; border: 1px solid var(--htg-line); border-radius: 20px; overflow: hidden; }
.hty-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  margin-bottom: 14px; background: #f6f3ef;
}
.hty-photo .htg-reason__name, .hty-photo .htg-reason__text { padding: 0 20px; }
.hty-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hty-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--htg-line); border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ht-ink); text-decoration: none;
}
.hty-links a:hover { border-color: var(--ht-ink); color: var(--ht-ink); }
.hty-sources { margin: 0 0 40px; font-size: 14px; line-height: 1.6; color: var(--htg-soft); }
.hty-sources p { margin: 0 0 8px; }
.hty-sources ul { margin: 0; padding: 0 0 0 18px; }
.hty-sources li { list-style: disc; }
.hty-sources a { color: var(--htg-soft); text-decoration: underline; }

@media (max-width: 640px) {
  .hty-hero img, .htg-hero--photo img { aspect-ratio: 16 / 10; border-radius: 22px; }
  .hty-answer { font-size: 17px; }
  .hty-section { margin-bottom: 44px; }
  .hty-seasons, .hty-photos { grid-template-columns: 1fr; }
  .hty-steps .htg-step__body { padding-top: 9px; }
  .hty-callout { padding: 18px; }
}
