/* ACT House & Landscaping Maintenance - page build stylesheet (silo build, 9 Oct 2026).
   Markup: .act-page in post_content. Colours come from the Elementor kit (body.elementor-kit-N); no hex except white.
   Grid: content box exactly 1440px on desktop, 24px side padding at 1480px and below. Text elements carry no layout. */

.act-page {
  --act-primary: var(--e-global-color-primary);
  --act-secondary: var(--e-global-color-secondary);
  --act-text: var(--e-global-color-text);
  --act-accent: var(--e-global-color-accent);
  --act-section: clamp(48px, 2.2vw + 40px, 88px);
  --act-gap: clamp(32px, 4vw, 64px);
  --act-shadow: 0 4px 14px rgba(15, 23, 42, .10);
  --act-line: rgba(36, 36, 36, .14);
  --act-ease: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  color: var(--act-text);
  background: #fff;
  overflow-wrap: break-word;
}
.act-page *, .act-page *::before, .act-page *::after { box-sizing: border-box; }
.act-page :is(h1, h2, h3, h4, p, li, dl, dt, dd, blockquote, figure) { margin: 0; }
.act-page :is(h1, h2, h3) { font-family: var(--e-global-typography-primary-font-family), sans-serif; color: var(--act-primary); letter-spacing: -0.01em; text-transform: none; }
.act-page h1 { font-size: clamp(30px, 2.4vw + 14px, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.act-page h2 { font-size: clamp(24px, 1.2vw + 16px, 32px); line-height: 1.2; font-weight: 600; }
.act-page h3 { font-size: clamp(18px, .4vw + 15px, 21px); line-height: 1.3; font-weight: 600; }
.act-page p, .act-page li, .act-page dd, .act-page dt { font-size: 16px; line-height: 1.7; }

/* Grid: 1440 exact, 24px gutters only at <=1480 */
.act-wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 0; }
@media (max-width: 1480px) { .act-wrap { padding-inline: 24px; } }

/* Hero band */
.act-hero { background: var(--act-primary); color: #fff; padding-block: clamp(40px, 3vw + 24px, 72px); }
.act-hero .act-wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px var(--act-gap); align-items: center; }
.act-hero-main { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (max-width: 1023px) { .act-hero .act-wrap { grid-template-columns: minmax(0, 1fr); } }
.act-hero h1, .act-hero p, .act-hero a:not(.act-btn) { color: #fff; }
.act-hero .act-lead-box { display: flex; flex-direction: column; gap: 14px; }
.act-hero .act-lead-box p { font-size: 17px; line-height: 1.7; }
.act-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.act-crumbs li { font-size: 14px; line-height: 1.5; }
.act-crumbs li + li::before { content: "/"; opacity: .7; margin-right: 6px; }
.act-hero .act-crumbs a { color: #fff; }
.act-trust { list-style: none; padding: clamp(18px, 2vw, 26px); margin: 0; display: flex; flex-direction: column; gap: 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; }
.act-trust li { font-size: 15px; line-height: 1.5; display: flex; align-items: center; gap: 10px; list-style: none; }
@media (max-width: 1023px) { .act-trust { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; border: 0; padding: 0; } .act-trust li { font-size: 14px; } }
.act-trust svg { flex: none; width: 18px; height: 18px; color: var(--act-secondary); }

/* Buttons: primary brand green, light green on hover; secondary white with green border */
.act-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.act-page .act-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 5px; font-family: var(--e-global-typography-primary-font-family), sans-serif; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; border: 2px solid var(--act-primary); background: var(--act-primary); color: #fff; transition: background-color .2s var(--act-ease), border-color .2s var(--act-ease), color .2s var(--act-ease), transform .16s var(--act-ease); background-image: none; }
.act-page .act-btn svg { width: 18px; height: 18px; flex: none; }
.act-page .act-btn-line { background: #fff; color: var(--act-primary); }
.act-hero .act-btn { background: #fff; border-color: #fff; color: var(--act-primary); }
.act-hero .act-btn-line { background: transparent; color: #fff; }
.act-page .act-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .act-page .act-btn:hover, .act-hero .act-btn:hover { background: var(--act-secondary); border-color: var(--act-secondary); color: var(--act-text); }
}
.act-page .act-btn:focus-visible, .act-page a:focus-visible, .act-page summary:focus-visible { outline: 3px solid var(--act-secondary); outline-offset: 3px; }
@media (max-width: 479px) { .act-btns { width: 100%; } .act-page .act-btn { width: 100%; justify-content: center; } }

/* Body grid: content + aside */
.act-body { padding-block: var(--act-section); }
.act-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--act-gap); align-items: start; }
@media (max-width: 1023px) { .act-grid { grid-template-columns: minmax(0, 1fr); } }
.act-main { display: flex; flex-direction: column; gap: clamp(36px, 3vw, 56px); }
.act-main > section { display: flex; flex-direction: column; gap: 16px; }
.act-main > section > div:not([class]) { display: flex; flex-direction: column; gap: 14px; }

/* Text links: text colour, underline grows from the left on hover/focus (same as the autoblog posts) */
.act-main a:not(.act-btn), .act-aside a:not(.act-btn) { color: var(--act-text); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s ease, color .2s ease; font-weight: 600; }
.act-main a:not(.act-btn):hover, .act-main a:not(.act-btn):focus-visible, .act-aside a:not(.act-btn):hover, .act-aside a:not(.act-btn):focus-visible { background-size: 100% 1px; color: var(--act-primary); }
@media (prefers-reduced-motion: reduce) { .act-main a, .act-aside a { transition: none; } }

/* Lists show their markers (page content only) */
.act-main ul:not([class]), .act-main ol:not([class]) { padding-left: 1.3em; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.act-main ul:not([class]), .act-main ul:not([class]) > li { list-style: disc outside; }
.act-main ol:not([class]), .act-main ol:not([class]) > li { list-style: decimal outside; }
.act-main ul:not([class]) > li, .act-main ol:not([class]) > li { display: list-item; }
.act-main ul:not([class]) li::marker, .act-main ol:not([class]) li::marker { color: var(--act-primary); font-weight: 700; }

/* Cards (hub lists, steps) */
.act-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.act-cards > li { display: flex; }
.act-card { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: clamp(18px, 2vw, 26px); background: #fff; border-radius: 8px; box-shadow: var(--act-shadow); border-top: 4px solid var(--act-primary); }
.act-card p { font-size: 15px; line-height: 1.6; }
.act-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: actstep; }
.act-steps > li { display: flex; gap: 16px; align-items: flex-start; counter-increment: actstep; }
.act-steps > li::before { content: counter(actstep); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--act-primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.act-step-body { display: flex; flex-direction: column; gap: 4px; padding-top: 5px; }

/* Link lists: other services / other areas */
.act-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.act-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--act-primary); border-radius: 5px; font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--act-text); text-decoration: none; background: #fff; transition: border-color .2s var(--act-ease), color .2s var(--act-ease); }
.act-main .act-links a { background-image: none; }
.act-links a::after { content: ""; flex: none; width: 8px; height: 8px; border-top: 2px solid var(--act-primary); border-right: 2px solid var(--act-primary); transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .act-links a:hover { border-color: var(--act-secondary); color: var(--act-primary); } }
.act-area-group { display: flex; flex-direction: column; gap: 10px; }

/* Map */
.act-map { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; box-shadow: var(--act-shadow); }
.act-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* FAQ accordion: chevron rotates 180deg when open; height animated by act-page.js */
.act-faq { display: flex; flex-direction: column; gap: 12px; }
.act-faq details { border: 1px solid var(--act-primary); border-radius: 8px; background: #fff; overflow: hidden; }
.act-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 18px; }
.act-faq summary::-webkit-details-marker { display: none; }
.act-faq summary h3 { font-size: 17px; line-height: 1.4; }
.act-faq .act-chev { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--act-primary); color: #fff; display: grid; place-items: center; transition: transform .22s var(--act-ease), background-color .2s ease; }
.act-faq .act-chev svg { width: 16px; height: 16px; }
.act-faq details[open]:not(.is-closing) .act-chev { transform: rotate(180deg); }
.act-faq-a { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; }
@media (hover: hover) and (pointer: fine) { .act-faq summary:hover .act-chev { background: var(--act-secondary); } }
@media (prefers-reduced-motion: reduce) { .act-faq .act-chev { transition: none; } }

/* Aside card */
.act-aside { display: flex; flex-direction: column; gap: 20px; }
.act-aside-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.2vw, 28px); border-radius: 8px; box-shadow: var(--act-shadow); border-top: 4px solid var(--act-primary); background: #fff; }
.act-aside-card h2 { font-size: 21px; }
.act-aside-card dl { display: grid; gap: 4px 0; }
.act-aside-card dt { font-weight: 700; color: var(--act-primary); font-size: 14px; }
.act-aside-card dd { font-size: 15px; }
.act-aside-card dd + dt { padding-top: 8px; }
.act-aside .act-btns { flex-direction: column; }
.act-aside .act-btn { justify-content: center; width: 100%; }

/* Closing CTA band */
.act-cta { background: var(--act-primary); color: #fff; padding-block: clamp(40px, 3vw + 20px, 64px); }
.act-cta .act-wrap { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.act-cta h2, .act-cta p { color: #fff; }
.act-cta .act-btn { background: #fff; border-color: #fff; color: var(--act-primary); }
.act-cta .act-btn-line { background: transparent; color: #fff; }
@media (hover: hover) and (pointer: fine) { .act-cta .act-btn:hover { background: var(--act-secondary); border-color: var(--act-secondary); color: var(--act-text); } }

@media (prefers-contrast: more) { .act-card, .act-aside-card { box-shadow: none; border: 2px solid var(--act-primary); } }

/* Archives (category / tag): text-only hero, card grid, numbered pagination */
.act-hero-text .act-wrap { grid-template-columns: minmax(0, 1fr); }
.act-label { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.act-post-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
@media (max-width: 1199px) { .act-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .act-post-grid { grid-template-columns: minmax(0, 1fr); } }
.act-post-grid > li { display: flex; }
.act-post-card { flex: 1; display: flex; flex-direction: column; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--act-shadow); }
.act-post-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--act-line); }
.act-post-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.act-post-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 24px); }
.act-post-body h2 { font-size: 20px; line-height: 1.3; }
.act-post-body h2 a { color: var(--act-primary); text-decoration: none; }
.act-post-body p { font-size: 15px; line-height: 1.6; }
.act-post-body .act-more { margin-top: auto; font-weight: 600; color: var(--act-text); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s ease, color .2s ease; align-self: flex-start; }
@media (hover: hover) and (pointer: fine) { .act-post-body .act-more:hover, .act-post-body h2 a:hover { background-size: 100% 1px; color: var(--act-primary); } }
.act-pagination ul { list-style: none; padding: 0; margin: clamp(32px, 3vw, 48px) 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.act-pagination a, .act-pagination span.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--act-primary); border-radius: 5px; color: var(--act-text); text-decoration: none; font-weight: 600; transition: border-color .2s var(--act-ease), color .2s var(--act-ease); }
.act-pagination span.current { background: var(--act-primary); color: #fff; }
.act-pagination span.dots { border-color: transparent; }
.act-pagination svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .act-pagination a:hover { border-color: var(--act-secondary); color: var(--act-primary); } }
.act-page .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.act-post-body h2 a { font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: -0.01em; text-transform: none; font-family: inherit; }
/* Testimonials */
.act-card blockquote { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; font-style: normal; }
.act-card blockquote p { font-size: 16px; line-height: 1.65; }
.act-cite { font-weight: 700; color: var(--act-primary); }
.act-card-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; } .act-card-links li { font-size: 15px; list-style: none; }
