/* =============================================================
   ADORN CROFT — STANDALONE CTA BUTTON (ac/button block)

   Loaded on EVERY front-end page, deliberately. The block is meant to be
   dropped anywhere, so its styling can't live in product-lister.css or
   design-call.css the way the other buttons' does — placed on a page that
   doesn't happen to load one of those, it would render unstyled.

   For the same reason this file is self-contained: the --ac-* tokens are
   re-declared per stylesheet in this theme (see product-lister.css:13,
   about-us.css:9, blog.css:7 …) and none of those load site-wide, so a
   token referenced here could resolve to nothing. Values are identical to
   the existing declarations, so re-declaring them changes nothing.
   ============================================================= */

:root {
	--ac-btn-dark  : #2B2A29;
	--ac-btn-cream : #F7F3EE;
	--ac-btn-moss  : #E3E8D6;   /* moss/misty green — the site-wide button hover,
	                               same value as --ac-footer-green and the
	                               .ac-btn--secondary / .ac-product-card-cta hovers */
	--ac-btn-font  : 'Satoshi Variable', system-ui, sans-serif;
}

/* ── Placement ─────────────────────────────────────────────────────────
   The wrapper owns the alignment so the button itself stays inline-flex and
   shrink-to-fit; text-align on a block-level parent is what actually centres
   an inline-flex child. */
.ac-button-block {
	display : block;
	width   : 100%;
	/* Bottom margin only, and unconditional — the block is typically the LAST
	   element in the content, with the next band coming from the template, so
	   without it the button sits flush against that band. (A :last-child
	   exception would zero it out in exactly that case.) Top spacing is left
	   to whatever precedes it, which already brings its own. */
	margin  : 0 0 clamp(40px, 5vw, 72px);
}

.ac-button-block--left   { text-align: left; }
.ac-button-block--center { text-align: center; }
.ac-button-block--right  { text-align: right; }

/* ── The button ────────────────────────────────────────────────────────
   Matches .ac-btn + .ac-btn--dark (product-lister.css:338/351) — the same
   treatment as the "Book Free Design Call" CTA — but written out in full
   rather than reusing those classes, so it looks identical on pages that
   never load product-lister.css.

   Styled on both <a> and <button> because the Klaviyo variant renders as a
   <button> (no destination to navigate to); that element also arrives with
   UA and Astra styling an <a> never has, hence the resets. */
.ac-btn-cta {
	display         : inline-flex;
	align-items     : center;
	justify-content : center;
	box-sizing      : border-box;
	padding         : 11px 16px;
	font-family     : var(--ac-btn-font) !important;
	font-size       : 0.875rem;
	font-weight     : 700;
	line-height     : normal;
	letter-spacing  : 0;
	text-transform  : uppercase;
	text-decoration : none !important;
	white-space     : nowrap;
	border          : 1px solid var(--ac-btn-dark);
	border-radius   : 0 !important;
	background      : var(--ac-btn-dark);
	color           : var(--ac-btn-cream) !important;
	cursor          : pointer;
	box-shadow      : none !important;
	transition      : background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Moss green on hover — the convention already used by the footer CTA
   (site-footer.css:173), .ac-btn--secondary and the product-card CTA.
   !important throughout because Astra fills button:hover/:focus with its own
   accent colour, and the base rule above sets colour with !important too.
   :focus-visible rather than :focus so a mouse click doesn't leave the button
   stuck in the hover colour after the pointer moves away. */
.ac-btn-cta:hover,
.ac-btn-cta:focus-visible {
	background   : var(--ac-btn-moss) !important;
	color        : var(--ac-btn-dark) !important;
	border-color : var(--ac-btn-dark) !important;
}
.ac-btn-cta:focus,
.ac-btn-cta:active { outline: none !important; }

/* ── "Book Free Design Call" (ac/design-call-steps) ────────────────────
   Brought onto the same hover as the block above. It's an .ac-btn--dark,
   whose only hover today is `opacity: 0.85` (product-lister.css:358).

   Scoped to the design-call sections rather than changing .ac-btn--dark
   globally — that class is on dark CTAs across the whole site and this is
   meant to adjust the design-call button, not all of them. The child
   selector also puts this at (0,3,0), above product-lister's (0,2,0), so it
   wins regardless of which stylesheet the browser reads first. */
.ac-dc-steps-content > .ac-btn:hover,
.ac-dc-steps-content > .ac-btn:focus-visible,
.ac-dc-homeowners > .ac-btn:hover,
.ac-dc-homeowners > .ac-btn:focus-visible {
	background   : var(--ac-btn-moss) !important;
	color        : var(--ac-btn-dark) !important;
	border-color : var(--ac-btn-dark) !important;
	opacity      : 1;   /* cancels .ac-btn--dark:hover { opacity: .85 } */
}
