/* =========================================================
   Internals polish — Ashbury Gardening (child theme)
   Purpose: tidy content areas, unify section modules,
   and avoid cross-file CSS fights.
   ========================================================= */

/* -------------------------
   1) Title area
   ------------------------- */
/* (intentionally minimal — title bands handled per-page blocks) */

/* -------------------------
   2) Paragraphs & lists
   ------------------------- */
.site-main p{ margin: 0 0 1em; }
.site-main ul,
.site-main ol{ margin: 0 0 1.1em 1.25em; }
.site-main li{ margin: .25em 0; }
.site-main ul ul,
.site-main ol ol{ margin-top: .25em; margin-bottom: .25em; }

/* Brand bullets */
.robin-bullets{ list-style:none; margin:10px 0 18px 24px; padding-left:0; }
.robin-bullets li{ position:relative; padding-left:24px; margin:8px 0; }
.robin-bullets li::before{
  content:""; position:absolute; left:0; top:3px; width:16px; height:16px;
  background-image:url('/wp-content/themes/ashburygardening-child/images/robin-bullet.png');
  background-size:contain; background-repeat:no-repeat;
}

/* -------------------------
   3) Images & captions
   ------------------------- */
.site-main img{ max-width: 100%; height: auto; }
.site-main figure{ margin: 1em 0; }
.site-main figcaption{
  font-size: .92em; color: #555; text-align: center; margin-top: .4em;
}

/* -------------------------
   4) Tables
   ------------------------- */
.site-main table{
  width: 100%; border-collapse: collapse; margin: 1em 0;
}
.site-main th, .site-main td{
  padding: 8px 10px; border-bottom: 1px solid rgba(0,0,0,.08);
}
.site-main th{ text-align: left; font-weight: 700; }

/* -------------------------
   5) Blockquotes
   ------------------------- */
.site-main blockquote{
  margin: 1.2em 0; padding: .6em 1em;
  border-left: 3px solid var(--ag-terracotta, #8A5A44);
  background: #FAF8F6;
}

/* -------------------------
   6) Buttons: layout-only helpers (palette lives in buttons.css)
   ------------------------- */
.about-page .about-cta .btn,
.about-page .about-cta .button { margin-right: 10px; }

.work-landing .work-contact .btn,
.work-landing .work-contact .button { margin-top: 8px; }

.cs-back .btn,
.cs-back .button { margin-top: 8px; }

.svc-cta .btn,
.svc-cta .button,
.pp-cta .btn,
.pp-cta .button { margin-top: 8px; }

/* Kill underline on link-styled buttons in hero/inline CTAs */
.hero-actions .btn,
.inline-cta a[class*="btn"] { text-decoration: none; }

/* -------------------------
   7) Forms (basic tidy)
   ------------------------- */
.site-main input[type="text"],
.site-main input[type="email"],
.site-main input[type="tel"],
.site-main input[type="url"],
.site-main textarea,
.site-main select{
  width: 100%; max-width: 40rem;
  padding: .55em .7em;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 6px; background: #fff;
}
.site-main label{ display:block; margin:.6em 0 .2em; font-weight:600; }

/* -------------------------
   8) Media alignment helpers
   ------------------------- */
.site-main .alignleft{ float:left; margin: .2em 1em .6em 0; }
.site-main .alignright{ float:right; margin: .2em 0 .6em 1em; }
.site-main .aligncenter{ display:block; margin:.8em auto; }

/* =========================================================
   About page (panel + CTA)
   ========================================================= */
.about-page .about-glance{
  margin: 1em 0 1.2em; padding: .8em 1em;
  background: #FAF8F6;
  border-left: 3px solid var(--ag-terracotta, #8A5A44);
}
.about-page .about-cta { margin: 1.2em 0 0; }
.site-main .about-cta .button{ display:inline-block; }

/* =========================================================
   WORK landing (hub)
   ========================================================= */
.work-landing .work-grid{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:1fr; gap:16px;
}
@media (min-width:769px){
  .work-landing .work-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.work-landing .work-grid li a{
  display:block; text-decoration:none; color:inherit;
  background:#fff; border:1px solid rgba(0,0,0,.08);
  padding:14px 16px;
}
.work-landing .work-grid h3{ margin:0 0 6px; font-size:1.15em; color:#2f4657; }
.work-landing .work-grid p{ margin:0 0 8px; }
.work-landing .work-grid .more{ display:inline-block; font-weight:600; }

/* Inline contact CTA (terracotta links, double indent) */
.work-landing .work-contact{
  margin:12px 0 0 48px;
  font-size:1.1em; font-weight:600; color:var(--ag-terracotta,#8A5A44);
  display:flex; flex-wrap:wrap; gap:12px; align-items:baseline;
}
.work-landing .work-contact a{
  color:var(--ag-terracotta,#8A5A44); text-decoration:none; text-shadow:none;
  border-bottom:1px solid rgba(138,90,68,.35); padding-bottom:1px;
}
.work-landing .work-contact a:hover{ color:#7A4F3C; border-bottom-color:#7A4F3C; }
@media (max-width:768px){
  .work-landing .work-contact{ margin-left:24px; font-size:1.05em; }
}

/* =========================================================
   CASE STUDIES — shortcode grid + single page sections
   ========================================================= */
.case-listing{ margin:20px 0 40px; }
.case-grid{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr; gap:18px; }
@media (min-width:769px){
  .case-grid.cols-2{ grid-template-columns:repeat(2,1fr); }
  .case-grid.cols-3{ grid-template-columns:repeat(3,1fr); }
}
.case-card{ background:#fff; border:1px solid rgba(0,0,0,.06); box-shadow:0 1px 2px rgba(0,0,0,.04); }
.case-link{ display:block; text-decoration:none; color:inherit; }
.case-thumb{ margin:0; background-size:cover; background-position:center; aspect-ratio:3/2; }
.case-thumb .no-image{
  display:flex; align-items:center; justify-content:center;
  height:100%; font-size:.9em; color:#6e6e6e; background:#f6f6f6;
}
.case-meta{ padding:14px 16px; }
.case-title{ margin:0 0 6px; font-size:1.05em; color:#2f4657; }
.case-excerpt{ margin:0; font-size:.92em; line-height:1.5; color:#333; }

.cs-hero{ margin:0 0 14px; }
.cs-hero img{ display:block; width:100%; height:auto; }
.cs-hero-caption{ font-size:.9em; padding:8px 12px; background:#f6f6f6; color:#2f4657; }

.cs-facts{ background:#fff; border:1px solid rgba(0,0,0,.08); padding:16px 18px; margin:18px 0 22px; }
.cs-facts h2{ margin:0 0 10px; }
.facts{ display:grid; grid-template-columns:1fr; gap:10px; margin:0; }
.facts dt{ font-weight:600; color:#2f4657; }
.facts dd{ margin:0; }
@media (min-width:769px){ .facts{ grid-template-columns:repeat(2,minmax(0,1fr)); } }

.cs-compare{ margin:24px 0; }
.compare-grid{ display:grid; grid-template-columns:1fr; gap:12px; }
.compare-grid figure{ margin:0; background:#fff; border:1px solid rgba(0,0,0,.08); }
.compare-grid img{ display:block; width:100%; height:auto; }
.compare-grid figcaption{
  font-size:.85em; padding:8px 10px; background:#f6f6f6; color:#2f4657;
  text-transform:uppercase; letter-spacing:.02em;
}
@media (min-width:769px){ .compare-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }

.cs-plants .plant-list{ list-style:none; margin:10px 0 18px; padding-left:0; }
.cs-plants .plant-list li{ position:relative; padding-left:24px; margin:8px 0; }


.cs-story h2{ margin-top:24px; }
.cs-back{ margin:28px 0; }

/* =========================================================
   Planting Plans (service page)
   ========================================================= */
.pp-page h1{ margin-bottom:8px; }

.pp-hero{ margin:0 0 14px; }
.pp-hero img{ display:block; width:100%; height:auto; }
.pp-hero-caption{ font-size:.9em; padding:8px 12px; background:#f6f6f6; color:#2f4657; }

.pp-definition,
.pp-glance{
  background:#fff; border:1px solid rgba(0,0,0,.08);
  padding:14px 16px; margin:10px 0 14px;
}
.pp-definition h3,
.pp-glance h3{ margin:0 0 6px; color:#2f4657; }
.pp-page .robin-bullets{ margin-left:24px; }

.pp-split{ display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:769px){ .pp-split{ grid-template-columns:repeat(2,minmax(0,1fr)); } }

.pp-process{ margin:24px 0; }
.pp-steps{ counter-reset: step; list-style:none; margin:0; padding:0; }
.pp-steps > li{
  position:relative; margin:14px 0; padding:12px 14px 12px 56px;
  background:#fff; border:1px solid rgba(0,0,0,.08);
}
.pp-steps > li::before{
  counter-increment: step; content: counter(step);
  position:absolute; left:14px; top:12px; width:28px; height:28px;
  display:flex; align-items:center; justify-content:center;
  background:#7b92ab; color:#fff; font-weight:600; border-radius:50%;
}
.pp-steps h3{ margin:0 0 4px; font-size:1.05em; color:#2f4657; }

.pp-faq details{ margin:10px 0; }
.pp-faq summary{
  cursor:pointer; user-select:none; padding:10px 12px; background:#fff;
  border:1px solid rgba(0,0,0,.1); color:#2f4657; font-weight:600;
}
.pp-faq details[open] summary{ border-bottom:none; }
.pp-faq details[open] > *:not(summary){
  border:1px solid rgba(0,0,0,.1); border-top:none; padding:10px 12px; background:#fff;
}

/* =========================================================
   Regions — Where I Work (image left, text right)
   ========================================================= */
.regions-grid{
  list-style:none; margin:.5em 0 1.2em; padding:0;
  display:block !important;
}
.regions-grid li{
  background:#fff; border:1px solid rgba(0,0,0,.08);
  padding:12px 14px;
}
.regions-grid li + li{ margin-top:16px; }
.regions-grid .thumb{ background:transparent !important; padding:0 !important; margin:0 !important; }
.regions-grid .thumb img{ display:block; width:100%; height:auto; object-fit:cover; }

@media (min-width:900px){
  .regions-grid li.has-thumb{
    display:flex !important; gap:14px !important; align-items:flex-start !important;
  }
  .regions-grid li.has-thumb > .thumb{
    flex:0 0 260px !important; max-width:260px !important; overflow:hidden !important;
  }
  .regions-grid li.has-thumb > .entry{ flex:1 1 auto !important; min-width:0 !important; }
}

@media (max-width:899.98px){
  .regions-grid li.has-thumb .thumb{
    aspect-ratio:16/9 !important; overflow:hidden !important; margin:0 0 8px 0 !important;
  }
  .regions-grid li.has-thumb .thumb img{
    height:100% !important; object-fit:cover !important;
  }
}

@media (min-width:900px){
  .regions-grid li.has-thumb .entry{ display:flex; flex-direction:column; justify-content:flex-start; }
  .regions-grid li.has-thumb h3{
    margin: -2px 0 .35em !important; line-height: 1.2;
  }
  .regions-grid li.has-thumb .entry p{ margin: .35em 0 0 !important; }
}

/* =========================================================
   Areas landing & pages
   ========================================================= */
.areas-landing .areas-grid{
  list-style:none; margin:.5em 0 1em; padding:0;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px;
}
.areas-landing .areas-grid li{ border:1px solid rgba(0,0,0,.08); background:#fff; }
.areas-landing .areas-grid a{ display:block; padding:14px; text-decoration:none; color:inherit; }
.areas-landing .areas-grid h3{ margin:.2em 0 .3em; line-height:1.2; }
.areas-landing .areas-grid p{ margin:0 0 .6em; color:#444; }
.areas-landing .areas-grid .more{ font-weight:600; color:var(--ag-terracotta,#8A5A44); }
.areas-landing .areas-grid a:hover .more{ text-decoration:underline; }

.area-page ul li{ margin:.35em 0; }

.area-page .case-teasers{
  list-style:none; margin:.2em 0 1em; padding:0;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px;
}
.area-page .case-teasers li{
  padding:8px 10px; background:#FAF8F6;
  border-left:3px solid var(--ag-terracotta,#8A5A44);
}
.area-page .case-teasers a{ text-decoration:none; }
.area-page .case-teasers a:hover{ text-decoration:underline; }

/* =========================================================
   Fluent Forms (#9) — match site CTAs (scoped, safe)
   ========================================================= */
#fluentform_9 .ff-btn,
#fluentform_9 .ff-btn-submit,
#fluentform_9 button[type="submit"],
#fluentform_9 input[type="submit"]{
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  border-radius: 0 !important;
  padding: 12px 18px !important;
  text-shadow: none !important;
  background: var(--ag-terracotta, #8A5A44) !important;
  border:1px solid var(--ag-terracotta, #8A5A44) !important;
  color:#fff !important;
}
#fluentform_9 .ff-btn:hover,
#fluentform_9 .ff-btn:focus{
  background:#7A4F3C !important; border-color:#7A4F3C !important; color:#fff !important;
}

/* =========================================================
   Articles / Blog
   ========================================================= */
.blog-index .layout,
.blog-archive .layout{
  display:grid; grid-template-columns:1fr; gap:16px;
}
@media (min-width: 1024px){
  .blog-index .layout,
  .blog-archive .layout{ grid-template-columns:minmax(0,1fr) 300px; }
}

.post-grid{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:1fr; gap:16px;
}
@media (min-width: 769px){
  .post-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Gentle overlay for article hero images */
.single-article .post-hero{
  position: relative;
}

.single-article .post-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 244, 238, 0.08);
  pointer-events: none;
}

/* Single post only: visually nudge sidebar down */
.single-article .blog-sidebar{
  transform: translateY(4.3rem);
}


.post-card{ background:#fff; border:1px solid rgba(0,0,0,.08); }
.post-card article{ background:transparent; border:0; height:auto; }

.post-card .card-link{ display:flex; flex-direction:column; color:inherit; text-decoration:none; height:auto; }

.post-card .thumb{ margin:0; background:#eee; aspect-ratio:16/9; overflow:hidden; }
.post-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.post-card .thumb .no-image{ display:flex; align-items:center; justify-content:center; height:100%; color:#666; font-size:.9em; }
.post-card .entry{ padding:12px 14px; }
.post-card .entry-title{ margin:.2em 0 .3em; font-size:1.1rem; color:#2f4657; line-height:1.25; }
.post-card .post-meta{ margin:0 0 .4em; color:#555; font-size:.92em; }
.post-card .excerpt{ margin:0 0 .6em; color:#333; }
.post-card .more{ font-weight:600; color:var(--ag-terracotta,#8A5A44); }   

/* Index cards without a featured image */
.post-card.no-thumb .thumb{
  display: none;
}

.post-card .more{
  display: inline-block;
  margin-top: .3rem;
}

.blog-index .post-card{
  max-width: 720px;
}

.blog-index .page-title{
  font-size: 1.8rem;
  margin-bottom: 1rem;
  opacity: .9;
}


/* Pagination */
.pagination{ margin:16px 0; }
.pagination .page-numbers{ display:inline-block; padding:6px 10px; border:1px solid rgba(0,0,0,.12); margin-right:6px; text-decoration:none; }
.pagination .current{ background:#f6f6f6; font-weight:600; }

/* Sidebar */
.blog-sidebar .widget{ background:#fff; border:1px solid rgba(0,0,0,.08); padding:12px 14px; margin:0 0 14px; }
.blog-sidebar .widget-title{ margin:0 0 6px; color:#2f4657; }
.blog-sidebar .cat-list{ list-style:none; margin:0; padding-left:0; }
.blog-sidebar .cat-list li{ margin:.25em 0; }
.blog-sidebar .cat-list .current-cat > a,
.blog-sidebar .cat-list .current-cat-parent > a{
  font-weight: 700;
  color: var(--ag-terracotta, #8A5A44);
  text-decoration: none;
}
.blog-sidebar .cat-list a:hover{ text-decoration: underline; }

/* Single article */
.single-article .post-header .post-meta{ color:#555; margin:.2em 0 1em; }
.single-article .post-hero{ margin:.6em 0 1em; }
.single-article .post-hero img{ width:100%; height:auto; display:block; }
.single-article .post-hero-caption{ text-align:center; color:#555; font-size:.9em; margin-top:.35em; }
.single-article .post-content p{ margin:0 0 1em; }
.single-article .post-footer .post-cats,
.single-article .post-footer .post-tags{ color:#555; margin:.6em 0 0; }

/* Two-column layout on desktop */
.single-article .layout,
.page-article   .layout{
  display:grid; grid-template-columns:1fr; gap:16px;
}
@media (min-width:1024px){
  .single-article .layout,
  .page-article   .layout{
    grid-template-columns:minmax(0,1fr) 300px;
  }
}
.page-article .post-hero{ margin:.6em 0 1em; }
.page-article .post-hero img{ width:100%; height:auto; display:block; }
.page-article .post-hero-caption{ text-align:center; color:#555; font-size:.9em; margin-top:.35em; }

/* Blog index: featured + teasers */
.blog-index .post-list{
  display: block;
}

/* Featured post card */
.blog-index .index-featured{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
  padding: 18px;
}

/* Featured hero image */
.blog-index .index-featured .post-hero{
  margin: 14px 0 0;
}
.blog-index .index-featured .post-hero img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Featured typography */
.blog-index .index-featured .entry-title{
  margin: 0 0 8px;
  line-height: 1.15;
}
.blog-index .index-featured .post-meta{
  margin: 0 0 14px;
  font-size: .95em;
  opacity: .8;
}

/* Teasers grid */
.blog-index .post-teasers{
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px){
  .blog-index .post-teasers{
    grid-template-columns: 1fr 1fr;
  }
}

/* Teaser cards */
.blog-index .index-teaser{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 14px 16px;
}
.blog-index .index-teaser .entry-title{
  margin: 0 0 6px;
  line-height: 1.2;
}
.blog-index .index-teaser .post-meta{
  margin: 0 0 10px;
  font-size: .92em;
  opacity: .75;
}
.blog-index .index-teaser .excerpt{
  margin: 0;
}

/* Pagination spacing */
.blog-index .pagination{
  margin-top: 22px;
}

.blog-index .page-intro{
  max-width: 46rem;
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  color: #4b5f6f;
}

/* Featured article on Articles index */
.blog-index .post-card--featured{
  padding: 1.8rem 2rem;
}

.blog-index .post-card--featured .entry-title{
  font-size: 1.6rem;
  line-height: 1.25;
}

.blog-index .post-card--featured .excerpt{
  font-size: 1.05rem;
}

.blog-index .post-card--featured .more{
  margin-top: .6rem;
  font-size: 0.95rem;
}

/* Articles page: calm down excerpt size */
.blog .entry-summary,
.blog .entry-summary p,
.blog .c-articles-excerpt,
.blog .c-articles-excerpt p {
  font-size: 0.8125rem; /* 13px */
  line-height: 1.55;
}

/* Future-proof layout: featured full width, others in two columns on desktop */
@media (min-width: 900px){
  .blog-index .post-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .blog-index .post-card--featured{
    grid-column: 1 / -1;
  }
}


/* =========================================================
   AG CLEAN TAIL — Home + global mobile gutters + Design & Planning
   ========================================================= */

/* Home: remove title strip and tighten hero */
body.home .page-header{ display:none !important; }
body.home .homepage-hero,
body.home .hero{ margin-top:0 !important; margin-bottom:16px; }
body.home .homepage-hero img,
body.home .hero img{ display:block; }

/* Global mobile gutters for pages */
@media (max-width:768px){
  body.page .page-header{ padding-inline:20px !important; }
  body.page .site-main, 
  body.page .content-primary,
  body.home .site-main,
  body.home .content-primary{ padding-inline:20px !important; }
  body.page .entry-content,
  body.page .content-primary .layout,
  body.page .site-main .layout,
  body.home .entry-content{
    margin-inline:0 !important;
    padding-inline:0 !important;
  }
}

/* Design & Planning (page-id-4076) */
body.page-id-4076{
  --dp-pad-desktop: 30px;
  --dp-pad-mobile:  20px;
}
body.page-id-4076 .main-content-wrapper,
body.page-id-4076 .content-area,
body.page-id-4076 .site-main{ background: transparent; }

@media (min-width:769px){
  body.page-id-4076 .entry-content{
    padding-left: var(--dp-pad-desktop);
    padding-right: var(--dp-pad-desktop);
    background:#f6f6f6;
    padding-top:20px; padding-bottom:20px;
  }
  body.page-id-4076 h1.page-title{
    display:block;
    background:#f6f6f6;
    margin:0 0 20px;
    margin-left: calc(-1 * var(--dp-pad-desktop));
    margin-right: calc(-1 * var(--dp-pad-desktop));
    padding:12px var(--dp-pad-desktop);
    line-height:1.2;
    color:inherit;
    border:1px solid rgba(0,0,0,.06);
    box-shadow:0 1px 0 rgba(0,0,0,.04);
  }
  body.page-id-4076 .widget-area,
  body.page-id-4076 .sidebar,
  body.page-id-4076 .secondary{
    background:#ffffff;
    padding:20px;
    margin-left:24px;
    border:1px solid rgba(0,0,0,.06);
    box-shadow:0 1px 0 rgba(0,0,0,.04);
  }
}
@media (max-width:768px){
  body.page-id-4076 .entry-content{
    padding-left: var(--dp-pad-mobile);
    padding-right: var(--dp-pad-mobile);
  }
  body.page-id-4076 h1.page-title{
    display:block;
    background:#f6f6f6;
    margin:0 0 20px;
    margin-left:  calc(-1 * var(--dp-pad-mobile));
    margin-right: calc(-1 * var(--dp-pad-mobile));
    padding:12px var(--dp-pad-mobile);
    line-height:1.2;
    color:inherit;
    border:1px solid rgba(0,0,0,.06);
    box-shadow:0 1px 0 rgba(0,0,0,.04);
  }
  body.page-id-4076 .widget-area,
  body.page-id-4076 .sidebar,
  body.page-id-4076 .secondary{
    display:block !important;
    background:#ffffff;
    padding:16px;
    margin:20px 0 0;
    border:1px solid rgba(0,0,0,.06);
    box-shadow:0 1px 0 rgba(0,0,0,.04);
  }
}

/* Internal pages (not Home, not D&P) — soft #f6f6f6 title band */
body.page:not(.home):not(.page-id-4076) .page-header{
  background:#f6f6f6;
  margin:0 0 20px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 1px 0 rgba(0,0,0,.04);
}
body.page:not(.home):not(.page-id-4076) .page-header .page-title,
body.page:not(.home):not(.page-id-4076) .page-header h1{
  margin:0; padding:12px 20px; line-height:1.2; color:inherit;
}
@media (max-width:768px){
  body.page:not(.home):not(.page-id-4076) .page-header .page-title,
  body.page:not(.home):not(.page-id-4076) .page-header h1{
    padding-left:20px; padding-right:20px;
  }
}

/* Strapline sizing */
@media (min-width:769px){
  .site-header .site-branding .site-strapline,
  .site-branding .site-strapline{
    font-size: 17px !important;
    line-height: 1.3 !important;
    margin-top: 2px !important;
    letter-spacing: 0.1px !important;
  }
}
@media (max-width:768px){
  .site-header .site-branding .site-strapline,
  .site-branding .site-strapline{
    font-size: 15px !important;
    line-height: 1.35 !important;
    margin-top: 0 !important;
  }
}

/* =========================================================
   Global inline CTA patterns (panel + centred links)
   ========================================================= */
:root{
  --ag-ink: #2f4657;
  --ag-terracotta: #8A5A44;
  --ag-terracotta-hover: #7A4F3C;
}

.entry-content .cta-panel{
  background:#f6f6f6;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 1px 0 rgba(0,0,0,.04);
  padding:12px 16px;
  margin:14px 0 18px;
}
.entry-content .cta-panel > *:first-child{ margin-top:0 !important; }
.entry-content .cta-panel > *:last-child{  margin-bottom:0 !important; }
.entry-content .cta-panel hr,
.entry-content .cta-panel .wp-block-separator{ display:none !important; }

.inline-cta{
  display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center;
  gap:.25ch .45ch;
  margin:12px 0 14px;
}
.inline-cta > *{ margin:0; }
.inline-cta .middot{ opacity:.6; }
.inline-cta a{
  color:var(--ag-terracotta);
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.inline-cta a:hover{
  color:var(--ag-terracotta-hover);
  border-bottom-color: currentColor;
}
.inline-cta--footer-gap{ margin-bottom: 36px !important; }

/* Home inline contact variant */
body.home .inline-cta{
  display:flex; flex-wrap:wrap; gap:28px; align-items:baseline;
  margin:22px 0 0; font-size:1.08rem;
}
body.home .inline-cta strong{ font-weight:600; }
@media (max-width:768px){ body.home .inline-cta{ gap:16px; font-size:1rem; } }

/* =========================================================
   Footer tune/polish (layout only)
   ========================================================= */
:root{ --footer-gutter: 30px; --footer-h3: 1.35rem; }

.site-footer .footer-columns{
  display:grid;
  grid-template-columns: 34% 36% 30%;
  gap: 24px 28px;
  padding: 0 var(--footer-gutter);
  align-items:start;
}
.site-footer .footer-column:first-child{ padding-left: var(--footer-gutter); }

.site-footer .footer-column:nth-child(2) .footer-flex-group{
  display:grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; align-items:start;
}
.site-footer .footer-column:nth-child(2) .footer-nav h3{ display:none; }
.site-footer .footer-column:nth-child(2) .footer-flex-group::before{
  content:"Navigation";
  grid-column: 1 / -1;
  display:block; text-align:center; margin: 0 0 8px;
  font-family:"Cormorant Garamond",serif; font-weight:500; font-size:var(--footer-h3); letter-spacing:.1px;
}

.footer-nav-list,
.footer-nav-list ul{ list-style:none; margin:0; padding:0; }
.footer-nav-list > li{ margin:6px 0; }
.footer-nav-list > li > ul{ margin:6px 0 10px 18px; }
.footer-nav a{ text-decoration:none; border-bottom:1px solid transparent; }
.footer-nav a:hover{ border-bottom-color: currentColor; }

.site-footer .footer-column:nth-child(3){ justify-self:end; max-width: 420px; }
.site-footer .footer-column:nth-child(3) h3{
  font-family:"Cormorant Garamond",serif; font-weight:500; font-size:var(--footer-h3);
  margin: 0 0 8px;
}
.site-footer .footer-column:nth-child(3) input[type="email"]{ max-width: 300px; width: 100%; }

.site-footer{ margin-bottom:0; padding-bottom:0; position:relative; }
.site-info, .site-footer + .site-info{ margin-top:0; }
.site-footer::before{
  content:""; position:absolute; left:0; right:0; top:0; height:160px; pointer-events:none;
  background: radial-gradient(120% 70% at 50% -12%,
              rgba(255,255,255,.05),
              rgba(255,255,255,.02) 38%,
              rgba(255,255,255,0) 68%);
  mix-blend-mode: screen;
}

@media (max-width:980px){
  .site-footer .footer-columns{
    grid-template-columns:1fr;
    gap:20px;
    padding:0 20px;
  }
  .site-footer .footer-column:first-child{ padding-left:0; }
  .site-footer .footer-column:nth-child(3){ justify-self:start; max-width:none; }
}

.footer-address, .footer-brand-contact address{ font-style: normal; }

.site-footer .footer-col-2 .footer-nav-list > li > a{
  font-size:13px; line-height:1.3;
}
.site-footer .footer-col-2 .footer-nav-list > li > ul a{
  font-size:11px; color:#efe2da;
}

/* Prevent odd word spacing in footer nav anchors */
.site-footer .footer-nav-list a{
  display:inline !important;
  white-space:normal !important;
  word-spacing:normal !important;
  letter-spacing:normal !important;
  text-align:left !important;
  justify-content:unset !important;
  gap:0 !important;
}
.site-footer .footer-nav-list,
.site-footer .footer-nav-list li{ text-align:left; }

/* Footer icons */
.footer-icons{ margin-top:8px; }
.footer-icons-row{ display:flex; align-items:center; gap:14px; margin:10px 0; }
.footer-icons-row.small-icons a{ font-size:20px; line-height:1; }
.footer-icons-row.large-icons a{ font-size:22px; line-height:1; }
.footer-icons a{ color: rgba(255,255,255,.92); text-decoration:none; }
.footer-icons a:hover{ color:#C18A73; }

/* =========================================================
   Contact page polish — layout + form inputs
   ========================================================= */
.contact-page .contact-cols{
  display:grid; grid-template-columns: 300px 1fr; gap:24px 36px; align-items:start; margin-top:6px;
}
.contact-page .contact-details h2,
.contact-page .contact-details h3{
  font-family:"Cormorant Garamond", serif; font-weight:600; line-height:1.2; margin:0 0 10px;
}
.contact-page .contact-details h2{ font-size:1.25rem; }
.contact-page .contact-details h3{ font-size:1.05rem; }
.contact-page .contact-details p{ margin:0 0 10px; }
.contact-page .contact-details a{
  color:var(--ag-terracotta); font-weight:600; text-decoration:none; border-bottom:1px solid transparent;
}
.contact-page .contact-details a:hover{ border-bottom-color:currentColor; }
.contact-page .contact-form form{ max-width:820px; }
.contact-page .contact-form label{ display:block; margin:0 0 4px; }
.contact-page .contact-form input[type="text"],
.contact-page .contact-form input[type="email"],
.contact-page .contact-form input[type="tel"],
.contact-page .contact-form input[type="url"],
.contact-page .contact-form input[type="number"],
.contact-page .contact-form select,
.contact-page .contact-form textarea,
.contact-page .contact-form .ff-el-form-control{
  width:100%; padding:10px 12px; border:1px solid rgba(0,0,0,.25); background:#fff; line-height:1.3; border-radius:0;
}
.contact-page .contact-form textarea{ min-height:180px; resize:vertical; }
.contact-page .contact-form input:focus,
.contact-page .contact-form select:focus,
.contact-page .contact-form textarea:focus,
.contact-page .contact-form .ff-el-form-control:focus{
  outline:2px solid var(--ag-terracotta); outline-offset:0; border-color:var(--ag-terracotta);
}
.contact-page .contact-form .ff-el-group,
.contact-page .contact-form .form-row{ margin-bottom:12px; }
.contact-page .contact-form .ff-el-form-check,
.contact-page .contact-form .ff-el-input--content,
.contact-page .contact-form .ff_list_buttons{
  display:flex; flex-wrap:wrap; align-items:center; gap:14px;
}
.contact-page .contact-form .ff-el-form-check label{ margin:0; }
.contact-page .contact-form .ff_submit_btn,
.contact-page .contact-form [type="submit"],
.contact-page .contact-form .btn{ margin-top:12px; }

.contact-page + .panel.note{
  margin-top:14px; padding:12px 14px; background:#f6f6f6;
  border:1px solid rgba(0,0,0,.06); box-shadow:0 1px 0 rgba(0,0,0,.04);
}
@media (max-width:768px){
  .contact-page .contact-cols{ grid-template-columns:1fr; gap:14px; padding-left:20px; padding-right:20px; }
}

/* =========================================================
   Diagram card (image + list)
   ========================================================= */
.ag-diagram{
  background:#fff; border:1px solid rgba(0,0,0,.08); box-shadow:0 1px 0 rgba(0,0,0,.04);
  padding:14px 16px; margin:16px 0 24px;
}
.ag-diagram .wrap{ display:grid; gap:16px; align-items:start; }
@media (min-width:900px){ .ag-diagram .wrap{ grid-template-columns: 1.25fr 1fr; gap:20px 28px; } }
.ag-diagram figure{ margin:0; }
.ag-diagram .img{ width:100%; height:auto; display:block; max-width:900px; margin-inline:auto; }
.ag-diagram .img.rotate-180{ transform:rotate(180deg); }
.ag-diagram .list{ list-style:none; margin:0; padding:0; }
.ag-diagram .list li{ margin:6px 0 8px; }
.ag-diagram .list em{ font-style:italic; }
.ag-diagram .n{
  display:inline-grid; place-items:center; width:22px; height:22px; border-radius:999px;
  margin-right:.5ch; font:700 13px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#488458; border:2px solid #488458; background:#fff;
}

/* =========================================================
   DEFENSIVE: keep .btn-ghost palette vs parent white-text rule
   ========================================================= */
//* =========================================================
   Ghost CTA — soft companion to primary summer button
   ========================================================= */

html body a[class*="btn"].btn-ghost,
html body .hero-actions a[class*="btn"].btn-ghost,
html body a.btn-ghost {
    color: #4d5f7c !important;

    background-color: transparent !important;
background-image: linear-gradient(
    to bottom,
    rgba(130, 150, 184, 0.38) 0%,
    rgba(106, 126, 160, 0.32) 46%,
    rgba(88, 105, 133, 0.82) 100%
) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;

    border: 1.5px solid var(--gold-frame, #cca462) !important;
    text-decoration: none !important;
    text-shadow: none !important;

    box-shadow: none !important;
}

/* Hover state — slightly stronger blue, no brown, no red/green test marks */

html body a[class*="btn"].btn-ghost:hover,
html body .hero-actions a[class*="btn"].btn-ghost:hover,
html body a.btn-ghost:hover {
    color: #2f4657 !important;

    background-color: transparent !important;
    background-image: linear-gradient(
        to bottom,
        rgba(130, 150, 184, 0.50) 0%,
        rgba(106, 126, 160, 0.34) 62%,
        rgba(88, 105, 133, 0.50) 100%
    ) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;

    border-color: var(--gold-frame, #cca462) !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* === Design & Planning page – mobile overflow fix === */
@media (max-width: 768px) {

  /* Clamp the Design & Planning content to the viewport */
  .page-design-planning .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: hidden;
  }

  /* Ensure children don't exceed the container width */
  .page-design-planning .entry-content > * {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Paragraphs: wrap text, no sideways spill */
  .page-design-planning .entry-content p {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}

/* === Fix breadcrumb overflow on mobile === */
@media (max-width: 768px) {
  .breadcrumbs,
  .breadcrumb,
  nav.breadcrumbs,
  nav.breadcrumb {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    white-space: normal !important;
    display: block;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Breadcrumb links should wrap normally, not force one long line */
  .breadcrumbs a,
  .breadcrumb a {
    white-space: normal !important;
    display: inline-block;
  }
}

/* === Design & Planning layout – fix overspill on mobile === */
@media (max-width: 768px) {
  /* Main content + CTA + sidebar: force them to respect the viewport */
  .page-design-planning .entry-content,
  .page-design-planning .page-cta,
  .page-design-planning .page-cta-inner,
  .page-design-planning aside.sidebar--main {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    box-sizing: border-box;
  }

  /* Give them sensible padding instead of "fake width" */
  .page-design-planning .entry-content,
  .page-design-planning .page-cta-inner,
  .page-design-planning aside.sidebar--main {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Lists / paragraphs / headings inside the content: don't exceed 100% */
  .page-design-planning .entry-content p,
  .page-design-planning .entry-content h2,
  .page-design-planning .entry-content ul,
  .page-design-planning .entry-content ol {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Sidebar block: stack below content, full-width */
  .page-design-planning aside.sidebar--main {
    display: block;
    margin-top: 2rem;
  }
}

.plan-scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin: 1.5rem 0;
}

.plan-scroll img{
  display:block;
  max-width:none;   /* critical for full scroll width */
  height:auto;
}

/* Desktop: don’t let it go wider than the content column */
@media (min-width: 1024px){
  .plan-scroll img{
    max-width:100%;
  }
}

.plan-caption{
  text-align:center;
  margin: .5rem 0 1.5rem;
  font-size: .95rem;
}

/* WordPress caption blocks: centre and keep inside content width */
.wp-caption {
  max-width: 100% !important;
}

.wp-caption.aligncenter {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.wp-caption-text {
  text-align: center !important;
}

/* Hide “The Ashbury Garden Blog” category in sidebar */
.blog-sidebar .cat-list li:has(a[href*="/my-ashbury-gardening-blog/"]){
  display: none;
}

/* Desktop: horizontal menu */
#primary-nav .menu{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

/* Mobile: burger opens/closes nav (push-down style) */
@media (max-width: 900px){
  #primary-nav{
    display: none;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
  }

  #primary-nav.is-open{
    display: block;
    position: relative;
    z-index: 9999;
  }

  /* If any other CSS collapses the nav, force it open */
  #primary-nav.is-open{
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }


  #primary-nav .menu{
    display: block;
    margin: 0;
    padding: 12px 16px;
    list-style: none;
  }

  #primary-nav .menu > li{
    margin: 0;
  }

  #primary-nav .menu > li > a{
    display: block;
    padding: 10px 0;
  }

  /* Submenus: accordion (no overlap) */
  #primary-nav .sub-menu{
    position: static !important;
    display: none;
    padding-left: 30px;
    margin: 8px 0 12px;
    list-style: none;
  }

#primary-nav .menu > li{
  display: flex;
  align-items: center;
}

#primary-nav .menu > li > a{
  flex: 1 1 auto;
}

#primary-nav .submenu-toggle{
  flex: 0 0 auto;
  margin-left: 12px;
}

/* Show submenu when JS adds .open to the parent <li> */
#primary-nav .menu li.open > .sub-menu{
  display: block !important;
}

  /* Remove any CSS-added second arrow */
  #primary-nav .menu-item-has-children > a::after{
    content: none !important;
  }
}

@media (max-width: 900px){
  /* Stop a fixed/absolute header from overlaying content */
  header, .site-header, #masthead{
    position: static !important;
  }

  /* Make sure the nav itself isn't positioned as an overlay */
  #primary-nav,
  #primary-nav.is-open{
    position: static !important;
  }
}

/* Mobile: reserve space under the header when burger menu is open */
@media (max-width: 900px){
  .menu-buffer{
    height: 0;
  }

  body.menu-open .menu-buffer{
    height: 290px; /* adjust by eye */
  }
}

@media (max-width: 900px){
  /* Each top-level item becomes a 2-line container:
     line 1: link + caret button
     line 2: submenu (full width) */
  #primary-nav .menu > li{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  #primary-nav .menu > li > a{
    flex: 1 1 auto;
  }

  #primary-nav .submenu-toggle{
    flex: 0 0 auto;
  }

  #primary-nav .sub-menu{
    flex: 0 0 100%;
  }
}


@media (max-width: 900px){

  /* Baseline: keep submenus hidden on mobile */
  #primary-nav .sub-menu{
    display: none !important;
    position: static !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-left: 30px;
    margin: 8px 0 12px;
    list-style: none;
  }

  #primary-nav .menu > li > a{
    padding-right: 10px;
  }

  /* Show submenu when JS marks the <li> as open */
  #primary-nav .menu li.open > .sub-menu{
    display: block !important;
  }

  /* Also show submenu when the caret button is expanded (covers any JS variations) */
  #primary-nav .submenu-toggle[aria-expanded="true"] ~ .sub-menu{
    display: block !important;
  }
}

@media (max-width: 900px){

  /* Make each top-level row a flex row */
  #primary-nav .menu > li{
    display: flex;
    align-items: center;
  }

  /* The link takes the available width, but reserves space for the caret */
  #primary-nav .menu > li > a{
    flex: 1 1 auto;
    padding-right: 2.2rem !important; /* reserve space for caret */
    box-sizing: border-box;
  }

  /* Give the caret a known width so the reserved space matches reality */
  #primary-nav .submenu-toggle{
    flex: 0 0 2.2rem;
    width: 2.2rem;
  }
}

/* Footer columns: 3 across on desktop */
.site-footer .footer-columns{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2rem !important;
}

/* Stack on small screens */
@media (max-width: 800px){
  .site-footer .footer-columns{
    grid-template-columns: 1fr !important;
  }
}

/* Footer: stop children spanning full grid width */
.site-footer .footer-columns > *{
  grid-column: auto !important;
}

/* Footer: ensure direct children behave like normal grid items */
.site-footer .footer-columns{
  grid-auto-flow: column !important;
}

/* Safari fix: prevent 100vw scrollbar drift */
.site-footer,
.site-footer .footer-main,
.site-footer .footer-columns{
  width: 100%;
  max-width: 100%;
}

.site-info,
.site-copyright{
  width: 100%;
  max-width: 100%;
}

/* Footer bottom bar: left copyright + right Back to top */
.footer-bottom-bar .footer-bar-content{
  display: flex;
  align-items: center;
}

.footer-bottom-bar .footer-bar-left{
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.footer-bottom-bar .footer-bar-right{
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
}

/* Force one-line label (also overrides any lingering inline white-space) */
.footer-bottom-bar .footer-bar-right a.back-to-top{
  white-space: nowrap !important;
}

.footer-bottom-bar a.back-to-top{ white-space: nowrap !important; }

/* =========================================================
   CTA panel contact links — match summer button palette
   ========================================================= */

html body .cta-panel a[href^="tel:"],
html body .cta-panel a[href^="mailto:"],
html body .final-cta a[href^="tel:"],
html body .final-cta a[href^="mailto:"],
html body .page-cta a[href^="tel:"],
html body .page-cta a[href^="mailto:"] {
    color: var(--band-bottom, #586985) !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(88, 105, 133, 0.35) !important;
}

html body .cta-panel a[href^="tel:"]:hover,
html body .cta-panel a[href^="mailto:"]:hover,
html body .final-cta a[href^="tel:"]:hover,
html body .final-cta a[href^="mailto:"]:hover,
html body .page-cta a[href^="tel:"]:hover,
html body .page-cta a[href^="mailto:"]:hover {
    color: var(--band-middle, #6a7ea0) !important;
    border-bottom-color: currentColor !important;
}