/* KGH Plumbing — site-specific styles.
   Kept separate from main.css (the vendored HTML5 UP Prologue stylesheet) so
   template updates never clobber our own rules. */

/* Testimonial block — was inline styles on index.html. */
.testimonial {
  margin-top: 2em;
}

.testimonial-heading {
  font-weight: bold;
  font-size: 1.4em;
  display: block;
  margin-bottom: 0.5em;
}

.testimonial blockquote {
  margin: 1em 0;
  font-style: italic;
  background: #f9f9f9;
  padding: 15px 20px;
  border-radius: 10px;
  border-left: 4px solid #3399ff;
}

.testimonial-author {
  font-weight: bold;
  font-style: normal;
}

/* Fifth section background — continues Prologue's one..four progression
   (#f5fafa -> #ecf1f1 -> #e8edec) now that a section has been inserted. */
#main > section.five {
  background-color: #e4e9e8;
}

/* Facebook feed — loaded as the section scrolls into view.
   Meta caps the Page Plugin at 500px wide, so the whole block is centred and
   constrained rather than stretched to the container. */
.fb-feed {
  max-width: 500px;
  margin: 2em auto 0;
}

.fb-feed iframe {
  display: block;
  width: 100%;
  border: none;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

.fb-feed-placeholder {
  padding: 2em 1.5em;
  text-align: center;
  background: #fff;
  border: 1px solid #dde3e3;
  border-radius: 8px;
}

.fb-feed-placeholder-text {
  font-size: 0.9em;
  margin: 0;
}


/* Visually hidden, but still read by screen readers. Used to give every form
   field a real <label> without changing the visual design. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Services list.
   The vendored template centres every section's text AND sets `list-style:
   disc`, so each bullet landed at a different x-position in front of its
   centred line — a ragged left edge that read as "not centred". Fix: give the
   list its own centred block with left-aligned text.

   Markers are drawn with ::before rather than list-style so they align in both
   columns and stay purely decorative (a literal "•" gets announced by some
   screen readers). Because list-style: none drops the list role in Safari
   VoiceOver, the <ul> carries an explicit role="list". */
#services ul {
  list-style: none;
  padding-left: 0;
  margin: 0 auto;
  max-width: 22em;
  text-align: left;
}

#services ul li {
  position: relative;
  padding-left: 1.15em;
  margin-bottom: 0.5em;
  break-inside: avoid;
}

#services ul li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.6em;
  width: 0.35em;
  height: 0.35em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* Two columns above the template's own 736px breakpoint. Multi-column fills
   top-to-bottom then across, and balances the two columns automatically. */
@media screen and (min-width: 737px) {
  #services ul {
    max-width: 46em;
    columns: 2;
    column-gap: 3.5em;
  }
}

/* Qualifications block in About. Same centred, left-aligned treatment as the
   services list — see the note there for why the markers are drawn rather
   than set with list-style. Single column: six items is short enough, and
   these are the page's strongest trust signals, so they get room to breathe. */
.credentials {
  margin-top: 2em;
}

.credentials-heading {
  font-weight: bold;
  font-size: 1.2em;
  display: block;
  margin-bottom: 0.75em;
}

.credentials ul {
  list-style: none;
  padding-left: 0;
  margin: 0 auto;
  max-width: 22em;
  text-align: left;
}

.credentials ul li {
  position: relative;
  padding-left: 1.15em;
  margin-bottom: 0.4em;
}

.credentials ul li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.6em;
  width: 0.35em;
  height: 0.35em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* About image. The template makes .image.featured full-bleed (width: 100%),
   which is fine for a landscape shot but renders a 3:4 portrait absurdly tall
   — roughly a screen and a half on desktop. Cap it and centre it instead. */
#about .image.featured {
  max-width: 22em;
  margin: 0 auto 2em;
}

#about .image.featured img {
  border-radius: 8px;
}

/* Facebook feed fallback. Always rendered — see the note in FacebookFeed.astro
   for why it cannot be shown conditionally. Deliberately quiet: it is noise for
   the majority whose feed loads fine. */
.fb-feed-fallback {
  margin: 0.75em auto 0;
  max-width: 500px;
  font-size: 0.8em;
  color: #888;
}
