/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.1
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --bm-purple: #2D0F5E;
  --bm-purple-dark: #160630;
  --bm-green: #8FA922;
  --bm-green-dark: #6d8018;
  --bm-cream: #F8F8F8;
  --bm-black: #1a1a1a;
}

/* BASE */
body {
  font-family: 'DM Sans', sans-serif !important;
  background: var(--bm-cream);
  color: var(--bm-black);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: 0.04em;
  color: var(--bm-purple);
}

a { color: var(--bm-green-dark); }
a:hover { color: var(--bm-purple); }

/* HEADER BAR (site title area on inner pages) */
.site-header, header.site-header {
  background: var(--bm-purple) !important;
  padding: 1.2rem 2rem !important;
}
.site-header a, .site-header .site-title a, .site-title a {
  color: var(--bm-green) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-decoration: none !important;
}
.site-description { color: rgba(245,242,236,0.6) !important; }

/* PAGE CONTENT WIDTH */
.page-content, .entry-content, main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* BUTTONS — general + Business Directory plugin */
button, input[type="submit"], .button, .wpbdp-button,
.wpbdp-submit-listing-button, #wpbdp-submit-listing-button {
  background: var(--bm-green) !important;
  color: var(--bm-black) !important;
  border: none !important;
  padding: 0.7rem 1.6rem !important;
  border-radius: 3px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem !important;
  cursor: pointer;
}
button:hover, input[type="submit"]:hover, .button:hover, .wpbdp-button:hover {
  background: var(--bm-purple) !important;
  color: #fff !important;
}

/* FORM FIELDS */
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="url"], textarea, select {
  border: 1px solid #d8d8d8 !important;
  border-radius: 3px !important;
  padding: 0.6rem 0.8rem !important;
  font-family: 'DM Sans', sans-serif !important;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--bm-green) !important;
  outline: 2px solid rgba(143,169,34,0.25) !important;
}

/* DIRECTORY LISTINGS */
.wpbdp-listing {
  background: #fff;
  border: 1px solid #eee;
  border-left: 3px solid var(--bm-green);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}
.wpbdp-listing .listing-title a { color: var(--bm-purple); font-weight: 600; }

/* NOTICES (e.g. "You are not logged in") */
.wpbdp-msg, .wpbdp-notice {
  background: rgba(143,169,34,0.1) !important;
  border-left: 3px solid var(--bm-green) !important;
  padding: 1rem 1.2rem !important;
  border-radius: 3px;
}

/* FOOTER */
.site-footer, footer.site-footer {
  background: var(--bm-purple-dark) !important;
  color: rgba(245,242,236,0.5) !important;
  padding: 2rem !important;
  text-align: center;
  margin-top: 3rem;
}
/* DIRECTORY ACTION BAR */
#wpbdp-main-links, .wpbdp-main-links {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  justify-content: flex-start; margin: 1rem 0 2rem;
}
#wpbdp-main-links a, .wpbdp-main-links a {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border: 1px solid var(--bm-green);
  border-radius: 3px;
  color: var(--bm-purple);
  font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none; background: #fff;
}
#wpbdp-main-links a:hover { background: var(--bm-green); color: #fff; }
#wpbdp-main-links .wpbdp-button, #wpbdp-main-links input[type="submit"] {
  background: var(--bm-green) !important; color: var(--bm-black) !important;
}
.bm-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: var(--bm-green);
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45em 0.8em;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 0.6em;
  box-shadow: 0 1px 4px rgba(45,15,94,0.18);
  position: relative;
  top: -0.15em;
}
/* DIRECTORY TEXT SIZING */
.wpbdp-msg, .wpbdp-notice, #wpbdp-listing-form .wpbdp-msg {
  font-size: 0.92rem !important;
  line-height: 1.6;
}
#wpbdp-listing-form label,
#wpbdp-listing-form .wpbdp-form-field-label {
  font-size: 0.9rem !important;
}
@media (max-width: 768px) {
  .wpbdp-msg, .wpbdp-notice { font-size: 0.85rem !important; padding: 0.9rem !important; }
  body { font-size: 15px; }
}
/* DIRECTORY FIELD LAYOUT */
.wpbdp-listing .wpbdp-field,
.wpbdp-listing-single .wpbdp-field {
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(45,15,94,0.07);
}
.wpbdp-listing .wpbdp-field:last-child { border-bottom: none; }

.wpbdp-field .wpbdp-field-label,
.wpbdp-field-label,
.wpbdp-listing .field-label {
  display: block !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(45,15,94,0.55) !important;
  margin-bottom: 0.28rem;
}

.wpbdp-field .value,
.wpbdp-field-value,
.wpbdp-listing .field-value {
  display: block !important;
  font-size: 1rem !important;
  font-weight: 500;
  color: var(--bm-black) !important;
  line-height: 1.5;
}

.wpbdp-field a { color: var(--bm-green-dark) !important; font-weight: 600; }
.wpbdp-msg, .wpbdp-notice, .wpbdp-listing-form-instructions {
  white-space: pre-line;
}
.bm-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: var(--bm-purple);
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45em 0.8em;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 0.6em;
  box-shadow: 0 1px 4px rgba(45,15,94,0.25);
  position: relative;
  top: -0.15em;
}
/* MOBILE FORM FIXES */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="password"],
  input[type="tel"], input[type="url"], input[type="number"],
  textarea, select {
    font-size: 16px !important;   /* stops iOS auto-zoom */
    max-width: 100%;
    width: 100%;
  }
  select { height: auto; padding: 0.7rem 0.6rem !important; }

  /* stop sideways overflow */
  html, body { overflow-x: hidden; max-width: 100%; }
  .wpbdp-listing, #wpbdp-listing-form, .wpbdp-search-form,
  table, .wpbdp-categories { max-width: 100% !important; }
  table, tbody, tr, td { display: block; width: 100% !important; }
  img { max-width: 100%; height: auto; }
}
.bm-no-results-help {
  background: #fff;
  border: 1px solid rgba(45,15,94,0.1);
  border-left: 3px solid var(--bm-green);
  border-radius: 4px;
  padding: 1.6rem 1.5rem;
  margin: 1.5rem 0;
}
.bm-no-results-help h3 { margin-bottom: 0.4rem; font-size: 1.3rem; }
.bm-no-results-help p { font-size: 0.92rem; color: rgba(10,10,10,0.65); margin-bottom: 1rem; }
.bm-nr-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.bm-nr-chip {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(143,169,34,0.5);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bm-purple) !important;
  text-decoration: none !important;
  background: #fff;
}
.bm-nr-chip:hover { background: var(--bm-green); color: #fff !important; }
.bm-nr-foot { font-size: 0.88rem; margin-bottom: 0; }
.bm-nr-all { font-weight: 700; }