/* Bulldog Fence Child — main stylesheet.
   Enqueued from functions.php with a filemtime() cache-bust and a dependency on
   the child theme header stylesheet. Add custom CSS below. */

/* Brand tokens (mirror the live Astra global palette). */
:root {
  --bulldog-green: #00483a;
  --bulldog-green-dark: #14261c;
  --bulldog-gold: #bf995a;
  --bulldog-ink: #14261c;
  --bulldog-bg-soft: #f4f6f4;
}

/* --- Priority-city local content block (Track B) ------------------------- */
.bulldog-city-notes {
  max-width: 1140px;
  margin: 2.5rem auto;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--bulldog-bg-soft);
  border-top: 4px solid var(--bulldog-gold);
  border-radius: 6px;
}
.bulldog-city-notes h2 {
  color: var(--bulldog-green);
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.bulldog-city-notes p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.bulldog-city-notes a {
  color: var(--bulldog-green);
  font-weight: 600;
  text-decoration: underline;
}
.bulldog-city-notes a:hover {
  color: var(--bulldog-gold);
}

/* --- Track C: review-star trust bar ------------------------------------- */
.bulldog-trustbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  justify-content: center;
  text-align: center;
  margin: 2.25rem auto;
  max-width: 1140px;
  padding: 0.9rem 1.25rem;
  background: var(--bulldog-green);
  border-radius: 6px;
  color: #fff;
  font-size: 0.95rem;
}
.bulldog-trustbar .bfc-stars {
  color: var(--bulldog-gold);
  letter-spacing: 2px;
  font-size: 1.1rem;
  line-height: 1;
}
.bulldog-trustbar .bfc-trust-text {
  font-weight: 600;
}
.bulldog-trustbar .bfc-trust-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}
.bulldog-trustbar .bfc-trust-link:hover {
  color: var(--bulldog-gold);
}

/* --- Track C: sticky mobile call/quote CTA ------------------------------ */
.bulldog-sticky-cta {
  display: none; /* shown on mobile only */
}
@media (max-width: 921px) {
  .bulldog-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: flex;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
  }
  .bulldog-sticky-cta .bfc-cta {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.95rem 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    line-height: 1.1;
  }
  .bulldog-sticky-cta .bfc-cta--call {
    background: var(--bulldog-green);
  }
  .bulldog-sticky-cta .bfc-cta--quote {
    background: var(--bulldog-gold);
    color: var(--bulldog-green-dark);
  }
  .bulldog-sticky-cta .bfc-cta__icon {
    font-size: 1.15rem;
  }
  /* Keep the fixed bar from covering page-bottom content/footer. */
  body {
    padding-bottom: 56px;
  }
  /* Lift Astra's scroll-to-top button above the sticky CTA bar so it isn't
     covered on mobile. */
  #ast-scroll-top {
    bottom: 74px !important;
  }
}

/* --- Resource Center / blog (Track B styling) --------------------------- */
/* On-brand styling for the blog index, category archives and single guides.
   (Transparent header is disabled on these contexts in inc/resource-center.php,
   so the content already clears the header.) */

/* Archive / blog page title banner */
.blog .ast-archive-description,
.archive .ast-archive-description,
.blog .astra-blog-layout-1 .ast-archive-description {
  margin-bottom: 2rem;
}
.blog #primary,
.archive #primary,
.search #primary,
.single-post #primary {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* A styled page title band for the posts index + archives */
.blog .entry-title,
.archive .ast-archive-description .ast-archive-title {
  color: var(--bulldog-green);
}
.ast-archive-description .ast-archive-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--bulldog-green);
}

/* Post cards in the classic blog layout */
.blog article.ast-article-post,
.archive article.ast-article-post,
.search article.ast-article-post {
  background: #fff;
  border: 1px solid #e6e9e6;
  border-left: 4px solid var(--bulldog-gold);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.75rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.blog article.ast-article-post:hover,
.archive article.ast-article-post:hover,
.search article.ast-article-post:hover {
  box-shadow: 0 8px 28px rgba(20, 38, 28, 0.09);
  transform: translateY(-2px);
}

/* Titles + links */
.blog .entry-title a,
.archive .entry-title a,
.search .entry-title a {
  color: var(--bulldog-green);
  transition: color 0.15s ease;
}
.blog .entry-title a:hover,
.archive .entry-title a:hover,
.search .entry-title a:hover {
  color: var(--bulldog-gold);
}

/* Category / meta line in gold */
.ast-taxonomy-container a,
.entry-meta a[rel="category tag"] {
  color: var(--bulldog-gold);
  font-weight: 600;
}
.ast-taxonomy-container a:hover {
  color: var(--bulldog-green);
}

/* "Read More" as a brand button */
.blog .read-more a,
.archive .read-more a,
.search .read-more a,
.ast-button.ast-read-more {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.3rem;
  background: var(--bulldog-green);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.blog .read-more a:hover,
.archive .read-more a:hover,
.search .read-more a:hover,
.ast-button.ast-read-more:hover {
  background: var(--bulldog-gold);
  color: var(--bulldog-green-dark);
}

/* Single guide: readable measure + brand headings/links */
.single-post .entry-content {
  max-width: 760px;
}
.single-post .entry-content h2,
.single-post .entry-content h3 {
  color: var(--bulldog-green);
  margin-top: 1.8rem;
}
.single-post .entry-content a {
  color: var(--bulldog-green);
  text-decoration: underline;
}
.single-post .entry-content a:hover {
  color: var(--bulldog-gold);
}
.single-post .entry-title {
  color: var(--bulldog-green);
}

/* ---- Fence FAQ (Service/City pages) ---- */
.bulldog-faq {
  max-width: 900px;
  margin: 2.5rem auto 1rem;
}
.bulldog-faq > h2 {
  color: var(--bulldog-green);
  margin-bottom: 1rem;
}
.bulldog-faq__item {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: #fff;
}
.bulldog-faq__item > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--bulldog-green);
  position: relative;
}
.bulldog-faq__item > summary::-webkit-details-marker {
  display: none;
}
.bulldog-faq__item > summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  color: var(--bulldog-gold);
  font-size: 1.3rem;
  line-height: 1;
}
.bulldog-faq__item[open] > summary::after {
  content: "\2013";
}
.bulldog-faq__a {
  padding: 0 1.2rem 1.1rem;
}
.bulldog-faq__a p {
  margin: 0;
  color: #3a3f45;
}

/* ---- County hub pages ---- */
.bulldog-county__towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 1rem 0 2rem;
  padding: 0;
}
.bulldog-county__towns li {
  margin: 0;
}
.bulldog-county__towns a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f4f6f4;
  border: 1px solid #e2e5ea;
  border-radius: 999px;
  color: var(--bulldog-green);
  font-weight: 600;
  text-decoration: none;
}
.bulldog-county__towns a:hover {
  background: var(--bulldog-green);
  color: #fff;
}

/* ---- Town -> county backlink (appended under city notes) ---- */
.bulldog-county-link {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  font-weight: 600;
}
.bulldog-county-link a {
  color: var(--bulldog-green);
}
.bulldog-county-link a:hover {
  color: var(--bulldog-gold);
}

/* ============================================================
   Native Landing template (Pool Fences, county hubs, Fence Types)
   Gives native pages a branded hero + styled body to match the site.
   ============================================================ */
.bd-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 600px) {
  .bd-container { padding: 0 1.2rem; }
}
.bd-page-hero {
  background: linear-gradient(135deg, var(--bulldog-green-dark) 0%, var(--bulldog-green) 100%);
  color: #fff;
  padding: 3.5rem 0;
}
.bd-page-hero .bd-crumbs {
  font-size: 0.85rem;
  color: #cdd8d2;
  margin-bottom: 0.6rem;
}
.bd-page-hero .bd-crumbs a {
  color: #cdd8d2;
  text-decoration: none;
}
.bd-page-hero .bd-crumbs a:hover {
  color: var(--bulldog-gold);
}
.bd-page-hero__title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.bd-page-hero__intro {
  color: #e6ede9;
  font-size: 1.12rem;
  max-width: 720px;
  margin: 0;
}
.bd-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.bd-hero-btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  background: var(--bulldog-gold);
  color: #14261c;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid var(--bulldog-gold);
  transition: all 0.15s ease;
}
.bd-hero-btn:hover {
  background: #a9834a;
  border-color: #a9834a;
  color: #fff;
}
.bd-hero-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.bd-hero-btn--ghost:hover {
  background: #fff;
  color: var(--bulldog-green);
  border-color: #fff;
}
.bd-native-body {
  padding: 3rem 0 3.5rem;
}
.bd-native-body__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.bd-native-body__inner > p,
.bd-native-body__inner > h2,
.bd-native-body__inner > h3,
.bd-native-body__inner > ul:not(.bulldog-county__towns),
.bd-native-body__inner > ol {
  max-width: 760px;
}
.bd-native-body__inner h2 {
  color: var(--bulldog-green);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 2rem 0 0.8rem;
}
.bd-native-body__inner h3 {
  color: var(--bulldog-green-dark);
  margin: 1.5rem 0 0.6rem;
}
.bd-native-body__inner p,
.bd-native-body__inner li {
  font-size: 1.05rem;
  line-height: 1.75;
}
.bd-native-body__inner > p:first-child {
  font-size: 1.15rem;
  color: #2f3a34;
}
.bd-native-body__inner a {
  color: var(--bulldog-green);
  text-decoration: underline;
}
.bd-native-body__inner a:hover {
  color: var(--bulldog-gold);
}
/* Buttons inside native content (e.g. the county-hub / pool CTAs) */
.bd-native-body__inner .ast-button,
.bd-native-body__inner a.ast-button {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  background: var(--bulldog-gold);
  color: #14261c !important;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 0.5rem;
}
.bd-native-body__inner .ast-button:hover {
  background: #a9834a;
  color: #fff !important;
}
/* Neutralise Astra's flex content container on the native template so the hero
   and body stack full-width instead of sitting side-by-side. */
.ast-page-builder-template #content > .ast-container {
  display: block;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.bd-page-hero,
.bd-native-body {
  display: block;
  width: 100%;
}
/* Hide Astra's default in-content page title on this template (hero has it). */
.ast-page-builder-template .ast-single-entry-banner,
.ast-page-builder-template .entry-header .entry-title {
  display: none;
}

/* ============================================================
   Service-page building blocks (native template pages)
   ============================================================ */
.bd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}
.bd-cards > div {
  background: var(--bulldog-bg-soft);
  border-top: 4px solid var(--bulldog-gold);
  border-radius: 6px;
  padding: 1.1rem 1.2rem 1.2rem;
}
.bd-cards h3 {
  margin: 0 0 0.4rem !important;
  font-size: 1.1rem;
  color: var(--bulldog-green);
}
.bd-cards p {
  margin: 0;
  font-size: 0.98rem !important;
  line-height: 1.6 !important;
}
.bd-steps {
  counter-reset: bdstep;
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
}
.bd-steps li {
  position: relative;
  padding: 0 0 0.9rem 3rem;
  counter-increment: bdstep;
}
.bd-steps li::before {
  content: counter(bdstep);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--bulldog-green);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bd-steps strong {
  color: var(--bulldog-green-dark);
}
.bd-callout {
  background: var(--bulldog-green);
  color: #fff;
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  margin: 1.75rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bd-callout p {
  margin: 0;
  color: #fff;
  font-size: 1.08rem !important;
}
.bd-callout a.bd-hero-btn {
  margin: 0;
}
.bd-native-body__inner .bd-callout a:not(.bd-hero-btn) {
  color: var(--bulldog-gold);
}
.bd-native-body__inner .bd-cards,
.bd-native-body__inner .bd-callout,
.bd-native-body__inner .bd-calc {
  max-width: none;
}

/* ============================================================
   Fence Cost Estimator tool
   ============================================================ */
.bd-calc {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  background: #fff;
  border: 1px solid #dfe5e1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(20, 38, 28, 0.08);
}
@media (max-width: 760px) {
  .bd-calc { grid-template-columns: 1fr; }
}
.bd-calc__form {
  padding: 1.6rem 1.6rem 1.8rem;
}
.bd-calc__field { margin-bottom: 1.1rem; }
.bd-calc__field label,
.bd-calc__label {
  display: block;
  font-weight: 700;
  color: var(--bulldog-green-dark);
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}
.bd-calc__hint { font-weight: 400; color: #6b756f; font-size: 0.88rem; }
.bd-calc select,
.bd-calc input[type="number"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: #2b3330;
}
.bd-calc__range { display: flex; align-items: center; gap: 0.9rem; }
.bd-calc__range input[type="range"] { flex: 1; accent-color: var(--bulldog-green); }
.bd-calc__range output { min-width: 4.5rem; font-weight: 700; color: var(--bulldog-green); text-align: right; }
.bd-calc__seg { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.bd-calc__seg label { margin: 0; cursor: pointer; }
.bd-calc__seg input { position: absolute; opacity: 0; pointer-events: none; }
.bd-calc__seg span {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border: 1px solid #cfd8d3;
  border-radius: 999px;
  font-weight: 600;
  color: #2b3330;
}
.bd-calc__seg input:checked + span { background: var(--bulldog-green); border-color: var(--bulldog-green); color: #fff; }
.bd-calc__seg input:focus-visible + span { outline: 2px solid var(--bulldog-gold); outline-offset: 2px; }
.bd-calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.bd-calc__check label { font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.bd-calc__check input { accent-color: var(--bulldog-green); width: 1.1rem; height: 1.1rem; }
.bd-calc__result {
  background: linear-gradient(160deg, var(--bulldog-green-dark) 0%, var(--bulldog-green) 100%);
  color: #fff;
  padding: 1.6rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
}
.bd-calc__result p { color: #fff; margin: 0; }
.bd-calc__eyebrow { font-size: 0.8rem !important; letter-spacing: 0.1em; text-transform: uppercase; color: #cdd8d2 !important; }
.bd-calc__total { font-size: clamp(1.7rem, 3.4vw, 2.3rem) !important; font-weight: 800; line-height: 1.15 !important; margin: 0.3rem 0 0.2rem !important; color: var(--bulldog-gold) !important; }
.bd-calc__per { font-size: 0.95rem !important; color: #dde6e1 !important; }
.bd-calc__note { margin: 0.9rem 0 0 !important; font-size: 0.95rem !important; color: #e6ede9 !important; }
.bd-calc__breakdown { list-style: none; margin: 1rem 0 1.2rem; padding: 0.8rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.bd-calc__breakdown li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem !important; padding: 0.25rem 0; color: #e6ede9; }
.bd-calc__breakdown strong { color: #fff; }
.bd-calc__cta { text-align: center; }
.bd-calc__call { color: #fff !important; text-align: center; margin-top: 0.6rem; font-weight: 600; text-decoration: underline; }
.bd-calc__disclaimer { margin-top: auto !important; padding-top: 1rem; font-size: 0.8rem !important; color: #b9c8bf !important; line-height: 1.5 !important; }

/* Header "Get a Free Estimate" button: after the child-theme switch Astra's
   generated CSS applies 20px all-round padding, wrapping the label onto two
   lines on desktop. Restore the compact single-line pill. */
@media (min-width: 922px) {
  .ast-header-button-1[data-section*="section-hb-button-"] .ast-builder-button-wrap .ast-custom-button {
    padding: 12px 28px;
    white-space: nowrap;
    line-height: 1.2;
    font-size: 15px;
  }
}
