/*
 * Divi conflict overrides.
 *
 * The child theme replaces Divi's header.php/footer.php/page.php entirely, so
 * Divi's own header/footer markup and #main-content .container wrapper are not
 * used. What remains is Divi's global stylesheet, which still sets bare-tag
 * typography, link, button and form defaults for the whole site (including
 * inside Divi Builder content, if an editor turns the builder on for a page).
 * This file re-asserts the prototype's design tokens over those Divi defaults.
 * Keep this file additive and specific: fix a conflict here, don't redesign.
 */

body {
  font-family: var(--p-font);
  color: var(--p-ink);
  background: var(--p-white);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--p-font);
  color: var(--p-green-900);
}
p, li { color: inherit; }
a { color: var(--p-green-700); }
a:hover { color: var(--p-green-900); }

/* Divi adds top padding to #page-container when its own fixed/sticky header
   option is used; the theme's own sticky header (position:sticky in site.css)
   needs that padding at zero. */
#page-container { padding-top: 0 !important; }

/* Divi's default button styling (.et_pb_button, input[type=submit]) does not
   apply to .btn, but WordPress core block buttons and plain <button>/<input
   type=submit> elements outside Divi Builder should still match the design. */
button, input[type="submit"], input[type="button"] {
  font-family: var(--p-font);
}

/* Divi sets a global form-field border/radius; the inquiry form (placid-core
   plugin) and the homepage finder rely on the prototype's own field styling
   from site.css, so override Divi's defaults for both. */
input, select, textarea {
  font-family: var(--p-font);
  border-radius: 8px;
  border: 2px solid #6B7773;
}

/* Divi Builder modules are not used for the main chrome, but if an editor
   drops Divi Builder rows/modules into page content, keep them from fighting
   the container width the prototype's sections already define. */
.et_pb_section { padding: 0; }
.et_pb_row { width: 100%; max-width: none; padding: 0; }

/* Divi's img default already matches (max-width:100%; height:auto) — no
   override needed. Divi's smooth-scroll and skip-link styles are unused since
   this theme supplies its own in site.css. */
