/*
Theme Name: TPM Client Child (Kadence)
Theme URI: https://taxpromarketer.com
Description: TaxProMarketer client child theme for Kadence. Carries the client's brand tokens in theme.json and the TPM section patterns. Duplicate this folder per client and edit theme.json only.
Author: TaxProMarketer
Template: kadence
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.7
License: GNU General Public License v2 or later
Text Domain: tpm-client-child
*/

/* Sticky mobile call bar - shipped here so it works site-wide, not per page. */
.tpm-call-bar { display: none; }
@media (max-width: 781px) {
  .tpm-call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; display: flex;
    background: var(--wp--preset--color--brand-navy, #1D4F6C);
    box-shadow: 0 -2px 12px rgba(0,0,0,.18);
  }
  .tpm-call-bar a {
    flex: 1; text-align: center; padding: 14px 8px; color: #fff; font-weight: 600;
    text-decoration: none; font-size: 15px;
  }
  .tpm-call-bar__cta { background: var(--wp--preset--color--brand-green, #2CBF91); }
  body { padding-bottom: 56px; }
}

/* FAQ accordion polish (core Details block) */
.wp-block-details.tpm-faq { border: 1px solid #E3EBF1; margin-bottom: 10px; }
.wp-block-details.tpm-faq summary { font-weight: 600; color: var(--wp--preset--color--brand-navy, #1D4F6C); cursor: pointer; }
.wp-block-details.tpm-faq[open] summary { margin-bottom: 10px; }

/* -------------------------------------------------------------------------
   Brand font enforcement.
   Kadence prints its own body font-family in an inline <style> block, which
   beats theme.json and a plain `body{}` rule in this file. `html body` is one
   specificity step higher, so the brand font wins without !important.
   Rebranding: change the family here, in theme.json, and in the Google Fonts
   URL in functions.php.
   ------------------------------------------------------------------------- */
html body,
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .site-title,
html body .entry-title,
html body button,
html body input,
html body select,
html body textarea,
html body .wp-block-button__link {
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------------------------------------------------------------------------
   Pattern footer (tpm/site-footer)
   The homepage template carries its own designed footer block, so hide the
   theme's default footer on pages that use it. Production alternative: rebuild
   this footer once in Appearance > Customize > Footer so it applies sitewide,
   then delete the footer block from the page and remove this rule.
   --------------------------------------------------------------------------- */
body.tpm-pattern-footer .site-footer,
body.home .site-footer {
	display: none;
}

/* Services grid icon tile */
.tpm-icon {
	flex: 0 0 auto;
}

/* Form slot placeholder - visible reminder that a real form must replace it */
.tpm-form-slot code {
	word-break: break-all;
}
