/*
 Theme Name: Hello Elementor Child
 Theme URI: https://example.com/
 Description: Child theme for Hello Elementor
 Author: You
 Template: hello-elementor
 Version: 1.0.1
 Text Domain: hello-elementor-child
*/

/* =========================================
   Soapbox Section Styles
   ========================================= */
.soapbox-welcome {
  padding: 40px 0;
  background-color: #f7f7f7;
}
.soapbox-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: nowrap;
  padding: 20px;
}
.soapbox-image {
  width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
  object-fit: cover;
  margin: 0;
}
.soapbox-text { flex: 1; min-width: 260px; max-width: 750px; }
.soapbox-text strong {
  font-size: 1.6em; color: #13515D; display: block; margin-bottom: 4px;
}
.soapbox-text em {
  display: block; font-style: italic; color: #13515D; font-size: 1.15em;
  margin: 0 0 16px 0; text-align: center;
}
.soapbox-text p { margin-bottom: 16px; line-height: 1.55; font-size: 1.1em; }

/* =========================================
   Header Title Cleanup
   ========================================= */
.site-header strong,
.site-title strong {
  all: unset;
  font-weight: bold;
  font-size: inherit;
  color: inherit;
}

/* =========================================
   Custom Header Layout
   ========================================= */
.site-header {
  background-color: #DCEAEA;
  padding: 20px 30px;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.logo img {
  max-height: 45px; height: auto; width: auto; display: block;
}
.main-nav .menu-items {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 24px;
}
.main-nav .menu-items li { display: inline-block; }
.main-nav .menu-items a {
  text-decoration: none; color: #aa3040; font-weight: bold;
  transition: color .2s ease-in-out;
}
.main-nav .menu-items a:hover { color: #1f7a8c; }

/* Keep main menu un-underlined (no duplicate selector needed) */
.main-nav a { text-decoration: none; }

/* =========================================
   Footer Styles
   ========================================= */
.site-footer {
  background-color: #DCEAEA;
  padding: 40px 30px;
  font-family: 'Quicksand', sans-serif;
  font-size: .95em;
  color: #333;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 20px;
}
.footer-left {
  flex: 1; min-width: 250px; text-align: left; display: flex;
  flex-direction: column; justify-content: center; align-items: flex-start; height: 100%;
}
.footer-logo { width: 80px; height: auto; display: block; margin-bottom: 0; }
.footer-left .copyright { margin-top: 5px; font-size: .9em; color: #333; }
.footer-right {
  min-width: 250px; display: flex; justify-content: center; align-items: center;
  margin-top: -63px; height: 100%;
}
.footer-menu {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; justify-content: flex-start;
}
.footer-menu li { display: inline-block; }

/* Footer menu links: single source of truth (WCAG AA on #DCEAEA) */
.site-footer .footer-menu a {
  color: #0845A0;                 /* ≥4.5:1 contrast */
  text-decoration: underline;
  font-weight: 600;
}
.site-footer .footer-menu a:hover,
.site-footer .footer-menu a:focus {
  color: #063577;                 /* darker on hover/focus */
  text-decoration: underline;
}

/* =========================================
   Sitemap Menu
   ========================================= */
.site-map {
  display: flex; justify-content: center; align-items: center; flex-direction: column; padding: 20px;
}
.link-grid { display: flex; justify-content: center; align-items: center; }
.link-row { display: flex; justify-content: space-between; gap: 20px; }
.link-box a { text-decoration: none; color: #8B1C46; font-size: 16px; }
.link-row a:hover { text-decoration: underline; }

/* =========================================
   Contact Forms
   ========================================= */

/* A) Teal theme — only inside the teal panel */
.soapbox-container .wpcf7 input[type="text"],
.soapbox-container .wpcf7 input[type="email"],
.soapbox-container .wpcf7 input[type="url"],
.soapbox-container .wpcf7 input[type="tel"],
.soapbox-container .wpcf7 input[type="number"],
.soapbox-container .wpcf7 input[type="password"],
.soapbox-container .wpcf7 select,
.soapbox-container .wpcf7 textarea {
  background: #DCEAEA !important;
  border: 1px solid #364A4F;
  color: #0b4969;
  box-shadow: none !important;
  border-radius: 6px;
}
.soapbox-container .wpcf7 input:focus,
.soapbox-container .wpcf7 select:focus,
.soapbox-container .wpcf7 textarea:focus {
  background: #DCEAEA !important; border-color: #13515D; outline: none; box-shadow: none !important;
}
.soapbox-container .wpcf7 ::placeholder { color: #557c86; }
.soapbox-container .wpcf7 .wpcf7-submit {
  background: #13515D; border: 0; color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 700; cursor: pointer;
}
.soapbox-container .wpcf7 .wpcf7-submit:hover { background: #0b4969; }
.soapbox-container .wpcf7 input:-webkit-autofill,
.soapbox-container .wpcf7 input:-webkit-autofill:focus,
.soapbox-container .wpcf7 textarea:-webkit-autofill {
  -webkit-text-fill-color: #0b4969;
  box-shadow: 0 0 0 1000px #DCEAEA inset !important;
  transition: background-color 9999s ease-out 0s;
}
.soapbox-container .wpcf7 { padding: 9px; }
.soapbox-container .wpcf7 form label { display: block; }
.soapbox-container .wpcf7 form label .cf7-label {
  display: inline-block; margin-bottom: 6px;
}
/* Modern :has() — adds * to required labels in the panel only */
.soapbox-container .wpcf7 form label:has(.wpcf7-validates-as-required) .cf7-label::after {
  content: " *"; color: #892A1F; font-weight: 700; margin-left: 4px;
}

/* B) Red theme — any CF7 NOT inside the teal panel */
.wpcf7:not(.soapbox-panel) input[type="text"],
.wpcf7:not(.soapbox-panel) input[type="email"],
.wpcf7:not(.soapbox-panel) input[type="url"],
.wpcf7:not(.soapbox-panel) input[type="tel"],
.wpcf7:not(.soapbox-panel) input[type="number"],
.wpcf7:not(.soapbox-panel) input[type="date"],
.wpcf7:not(.soapbox-panel) textarea {
  width: 100%; max-width: 600px; margin: 10px auto; display: block; padding: 10px;
  border: 1px solid #b22222; border-radius: 5px; background-color: #fff; font-size: 15px;
  box-sizing: border-box; transition: border-color .3s ease, box-shadow .3s ease;
}
.wpcf7:not(.soapbox-panel) input:focus,
.wpcf7:not(.soapbox-panel) textarea:focus {
  border-color: #8b1a1a; box-shadow: 0 0 5px rgba(139,26,26,.4); outline: none;
}
.wpcf7:not(.soapbox-panel) label {
  font-weight: bold; display: block; margin: 10px auto 5px auto; max-width: 600px;
}
.wpcf7:not(.soapbox-panel) form {
  text-align: left; display: flex; flex-direction: column; align-items: center;
}
.wpcf7:not(.soapbox-panel) form .contact-form-wrapper {
  max-width: 600px; margin: 0 auto;
}
.wpcf7:not(.soapbox-panel) form .contact-form-wrapper .cf7-label::after {
  content: " *"; color: #c00;
}
/* Submit (single declaration; no duplicates) */
.wpcf7:not(.soapbox-panel) input[type="submit"] {
  background-color: #b22222; color: #fff; border: none; border-radius: 5px; padding: 10px 20px;
  font-size: 16px; font-weight: bold; cursor: pointer; transition: background-color .3s ease;
  display: block; margin: 20px auto 0 auto;
}
.wpcf7:not(.soapbox-panel) input[type="submit"]:hover { background-color: #8b1a1a; }
/* Messages & validation */
.wpcf7:not(.soapbox-panel) .wpcf7-response-output.wpcf7-mail-sent-ok {
  border: 2px solid #28a745; background-color: #e6f9ed; color: #155724;
  padding: 12px 20px; margin: 20px auto; max-width: 600px; border-radius: 5px; font-weight: bold; text-align: center;
}
.wpcf7:not(.soapbox-panel) .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7:not(.soapbox-panel) .wpcf7-response-output.wpcf7-aborted {
  border: 2px solid #dc3545; background-color: #fbeaea; color: #721c24;
  padding: 12px 20px; margin: 20px auto; max-width: 600px; border-radius: 5px; font-weight: bold; text-align: center;
}
.wpcf7:not(.soapbox-panel) .wpcf7-not-valid { border-color: #dc3545 !important; background-color: #fff5f5; margin-bottom: 5px; }
.wpcf7:not(.soapbox-panel) .wpcf7-not-valid-tip {
  color: #dc3545; font-size: 14px; font-weight: bold; margin-top: 5px; display: block; text-align: left; max-width: 600px;
}

/* Inline links: content areas (not buttons) */
.elementor a:visited { color: #335e85; }
:where(.elementor-widget-text-editor, .entry-content, .eael-content) a:not(.elementor-button):not(.eael-button) {
  text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 2px;
}
:where(.elementor-widget-text-editor, .entry-content, .eael-content) a:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}
.entry-content a { color: #1a73e8; text-decoration: underline; }

/* Email/inline links in text paragraphs */
p a[href^="mailto:"],
.entry-content p a {
  color: #0845A0;
  text-decoration: underline;
  font-weight: 500;
}
p a[href^="mailto:"]:hover,
.entry-content p a:hover,
p a[href^="mailto:"]:focus,
.entry-content p a:focus {
  color: #063577;
  text-decoration: underline;
}

/* =========================================
   wpDiscuz (Single Source of Truth)
   ========================================= */
#wpdcom {
  --sbn-bg: #DCEAEA;
  --sbn-border: #384C52;
  --sbn-text: #0b4969;
  --sbn-accent: #124D59;
  --sbn-accent-dark: #0b4969;
  --sbn-link: #872633;
  margin-top: 20px;
}
/* Panels & lists */
#wpdcom .wpd-form-wrap,
#wpdcom .wpd-thread-list,
#wpdcom .wpd-comment-wrap {
  background: var(--sbn-bg);
  border: 1px solid var(--sbn-border);
  border-radius: 8px;
  box-shadow: none;
}
/* Inputs */
#wpdcom input[type="text"],
#wpdcom input[type="email"],
#wpdcom input[type="url"],
#wpdcom textarea {
  background: var(--sbn-bg);
  border: 1px solid var(--sbn-border);
  color: var(--sbn-text);
  border-radius: 6px;
  padding: 10px 12px;
}
/* Focus */
#wpdcom input:focus,
#wpdcom textarea:focus {
  outline: none;
  border-color: var(--sbn-accent);
  box-shadow: none;
}
/* Buttons */
#wpdcom .wpd-primary-btn,
#wpdcom .wpd-submit,
#wpdcom .wpd-form .wpd-submit button {
  background: var(--sbn-accent);
  color: #474747;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}
#wpdcom .wpd-primary-btn:hover,
#wpdcom .wpd-submit:hover,
#wpdcom .wpd-form .wpd-submit button:hover {
  background: var(--sbn-accent-dark);
}
/* Links */
#wpdcom a { color: var(--sbn-link); }
#wpdcom a:hover { color: var(--sbn-accent); }
/* Compact items */
#wpdcom .wpd-comment { border-bottom: 1px solid #474747; padding: 14px 10px; }
/* Agreement */
.wpd-field-agreement label { color: #005252; }
.wpd-field-agreement input[type="checkbox"] { accent-color: #005252; }
/* Inline quote & code */
#wpdcom blockquote {
  border-left: 3px solid var(--sbn-accent);
  padding-left: 12px; color: #4A4A4A; font-style: italic; margin: 10px 0;
}
#wpdcom code {
  background: #474747; padding: 2px 6px; border-radius: 4px; font-size: 13px; font-family: monospace;
}
/* Contrast fixes */
#wpdcom ::placeholder { color: #3a6b81 !important; }
#wpdcom .wpd-form-wrap a,
#wpdcom .wpd-thread-list a,
#wpdcom .wpd-comment-wrap a { color: #0845A0; }
#wpdcom .wpd-form-wrap a:hover,
#wpdcom .wpd-thread-list a:hover,
#wpdcom .wpd-comment-wrap a:hover,
#wpdcom .wpd-form-wrap a:focus,
#wpdcom .wpd-thread-list a:focus,
#wpdcom .wpd-comment-wrap a:focus {
  color: #063577; text-decoration: underline;
}
#wpdcom .wpd-editor-char-counter,
#wpdcom [id^="wpd-editor-char-counter"] {
  color: #333 !important; font-size: 11px; font-weight: 600;
}
#wpdcom input::placeholder,
#wpdcom textarea::placeholder {
  color: #4a4a4a !important; opacity: 1 !important; font-weight: 500;
}
/* Comment list text */
#wpdcom .wpd-comment-wrap .wpd-comment-author,
#wpdcom .wpd-comment-wrap .wpd-comment-author a {
  color: var(--sbn-text, #0b4969) !important; font-weight: 700;
}
#wpdcom .wpd-comment-wrap .wpd-comment-date { color: #2f4f5a !important; }
#wpdcom .wpd-comment-wrap .wpd-comment-text,
#wpdcom .wpd-comment-wrap .wpd-comment-text p {
  color: var(--sbn-text, #0b4969) !important;
}
#wpdcom .wpd-comment-wrap .wpd-comment-footer .wpd-reply-button,
#wpdcom .wpd-comment-wrap .wpd-reply a {
  color: #0845A0 !important; text-decoration: underline;
}
#wpdcom .wpd-comment-wrap .wpd-reply a:hover,
#wpdcom .wpd-comment-wrap .wpd-reply a:focus {
  color: #063577 !important; text-decoration: underline;
}
/* View replies toggle */
#wpdcom .wpd-comment-footer .wpd-toggle .wpd-view-replies,
#wpdcom .wpd-comment-footer .wpd-toggle .wpd-view-replies .wpd-view-replies-text,
#wpdcom .wpd-comment-footer .wpd-toggle.wpd-hidden .wpd-view-replies,
#wpdcom .wpd-comment-footer .wpd-toggle.wpd-hidden .wpd-view-replies .wpd-view-replies-text {
  color: #0845A0 !important; text-decoration: underline; cursor: pointer;
}
#wpdcom .wpd-comment-footer .wpd-toggle .wpd-view-replies:hover .wpd-view-replies-text,
#wpdcom .wpd-comment-footer .wpd-toggle .wpd-view-replies:focus .wpd-view-replies-text,
#wpdcom .wpd-comment-footer .wpd-toggle:hover .wpd-view-replies,
#wpdcom .wpd-comment-footer .wpd-toggle:focus-visible .wpd-view-replies .wpd-view-replies-text {
  color: #063577 !important; outline: 2px solid currentColor; outline-offset: 2px;
}

/* =========================================
   Bottom tagline
   ========================================= */
.float-left-image,
.float-left-image p,
.float-left-image a {
  color: #13515D !important;
  font-size: 1.15em;
  line-height: 1.4;
}
.float-left-image,
.float-left-image p {
  font-style: italic; text-align: center; margin: 0;
}

/* =========================================
   Responsive Tweaks
   ========================================= */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 16px; text-align: center; }
  .main-nav .menu-items { flex-direction: column; gap: 10px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-right { text-align: center; margin-top: 20px; }
  .footer-menu { justify-content: center; gap: 16px; }
  .soapbox-container { flex-direction: column; padding: 20px; }
  .soapbox-image { width: 100%; max-width: 300px; margin: 0 auto 20px auto; }
  .soapbox-container .soapbox-text { text-align: left; }
}

/* Fix Soapbox section inside home-main */
.home-main .soapbox-text {
  text-align: left !important;            /* body defaults left */
  font-family: 'Quicksand', sans-serif;   /* restore Quicksand */
  color: #13515D;                         /* brand color */
}

.home-main .soapbox-text p {
  text-align: left !important;
  font-style: normal;
  margin-bottom: 16px;
  line-height: 1.55;
  font-size: 1.1em;
}

/* Keep ONLY the em lines (intro tagline + closing tagline) centered */
.home-main .soapbox-text > em {
  display: block;
  text-align: center !important;
}

/* Hide the post author name in EAEL Post Grid */
.eael-entry-meta .eael-posted-by {
  display: none !important;
}
