/* Enthusiasm 3PL — WordPress / Kadence compatibility layer.
   site.css is the design system; this file only neutralises parent-theme defaults. */

/* Kadence wrappers: let our sections run edge to edge */
body.e3pl #wrapper, body.e3pl #inner-wrap { overflow: visible; }
body.e3pl .e3pl-main { display: block; }
body.e3pl { background: #fff; color: var(--ink); font-family: var(--font-body); }

/* Kadence styles every <button>; reset ours */
body.e3pl .menu-toggle, body.e3pl .dd-toggle, body.e3pl .btn {
  box-shadow: none; text-transform: none; letter-spacing: .01em;
}
body.e3pl .menu-toggle, body.e3pl .dd-toggle { padding: 0; }
body.e3pl .menu-toggle:hover, body.e3pl .menu-toggle:focus { background: transparent; color: inherit; }
body.e3pl .btn { padding: .85rem 1.5rem; border-radius: 999px; line-height: 1; }
body.e3pl .btn--sm { padding: .6rem 1.1rem; }
body.e3pl .btn--primary, body.e3pl .btn--primary:hover { color: #fff; }
body.e3pl .btn--navy, body.e3pl .btn--navy:hover { color: #fff; background: var(--navy); }
body.e3pl .btn--wa, body.e3pl .btn--wa:hover { color: #fff; background: var(--whatsapp); }
body.e3pl .btn--ghost { background: transparent; color: #fff; }
body.e3pl .btn--outline { background: transparent; color: var(--navy); }

/* Links inside our components should not inherit Kadence link colours/underlines */
body.e3pl .card, body.e3pl .post, body.e3pl .tile, body.e3pl .link-arrow,
body.e3pl .nav__list a, body.e3pl .mobile-menu a, body.e3pl .site-footer a, body.e3pl .mbar a, body.e3pl .tag-row a, body.e3pl .side-links a { text-decoration: none; }

/* Headings / lists: Kadence adds margins and bullets */
body.e3pl h1, body.e3pl h2, body.e3pl h3 { font-family: var(--font-head); }
body.e3pl .e3pl-main ul:not(.prose ul), body.e3pl .e3pl-main ol:not(.prose ol),
body.e3pl .site-footer ul, body.e3pl .mobile-menu ul, body.e3pl .site-header ul { list-style: none; margin: 0; padding: 0; }
body.e3pl .prose ul { margin: 1.1em 0 0; }

/* Forms: keep our field look over Kadence inputs */
body.e3pl .field input, body.e3pl .field select, body.e3pl .field textarea { border-radius: 12px; border: 1.5px solid var(--grey-200); box-shadow: none; }
body.e3pl .field input:focus, body.e3pl .field select:focus, body.e3pl .field textarea:focus { border-color: var(--cyan); }

/* Editor/block defaults */
body.e3pl .e3pl-main > .wp-block-html, body.e3pl .e3pl-main > p:empty { margin: 0; }
body.e3pl .wp-block-image, body.e3pl .prose figure { margin: 1.5em 0; }
body.e3pl .prose img { border-radius: var(--radius); }

/* Pagination on the blog index */
body.e3pl .pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--grey-200); margin-right: .35rem; color: var(--navy); text-decoration: none; font-family: var(--font-head); font-weight: 600; }
body.e3pl .pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Admin bar offset for the fixed header (logged-in users) */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
body.admin-bar .mobile-menu { top: 32px; }

/* blog post hero photos: keep faces/top of the photo in view */
body.single-post .page-hero .hero__media img { object-position: 50% 20%; }
