/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Child theme for Hello Elementor. Add your custom CSS below to protect it from parent theme updates.
Author: John Huston
Template: hello-elementor
Version: 1.0.1
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
*/

/* =========================================================
   Add your custom CSS below this line.
   These styles will not be overwritten by theme updates.
   ========================================================= */

/* =========================================================
   ElementsKit icon subset — 3 glyphs only (836B vs 453KB).
   Full ekiticons.css is dequeued in functions.php.
   If new ElementsKit icons are added to any page, add their
   codepoints here. Reference: ekiticons.css in the plugin.
   ========================================================= */
@font-face {
    font-family: elementskit;
    src: url(assets/fonts/elementskit-subset.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
.ekit-wid-con .icon::before,
.elementor-editor-active .icon::before,
.elementor-widget .icon::before {
    font-family: elementskit !important;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.ekit-wid-con .icon.icon-arrow-right::before, .icon.icon-arrow-right::before { content: "\e87a"; }
.ekit-wid-con .icon.icon-right-arrow::before, .icon.icon-right-arrow::before { content: "\e9c5"; }
.ekit-wid-con .icon.icon-plus::before,        .icon.icon-plus::before        { content: "\e982"; }

/* ── Footer site description — remove any background highlight ── */
.site-branding p.site-description,
.site-description.show {
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* ── BRIVY IT — Option B Button System ── */

/* PRIMARY BUTTON */
.elementor-button-wrapper .elementor-button,
.elementor-button {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  padding: 15px 32px !important;
  background: #1B3A6B !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  position: relative !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: color 0.25s ease !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

/* The blue slide wipe layer */
.elementor-button-wrapper .elementor-button::before,
.elementor-button::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: #2563EB !important;
  transform: translateX(-101%) !important;
  transition: transform 0.25s ease !important;
  z-index: 0 !important;
}

.elementor-button-wrapper .elementor-button:hover::before,
.elementor-button:hover::before {
  transform: translateX(0) !important;
}

/* Keep text above the wipe layer */
.elementor-button-wrapper .elementor-button .elementor-button-text,
.elementor-button-wrapper .elementor-button .elementor-button-icon,
.elementor-button .elementor-button-text,
.elementor-button .elementor-button-icon {
  position: relative !important;
  z-index: 1 !important;
}

/* Arrow icon forward motion */
.elementor-button-wrapper .elementor-button .elementor-button-icon,
.elementor-button .elementor-button-icon {
  transition: transform 0.2s ease !important;
}
.elementor-button-wrapper .elementor-button:hover .elementor-button-icon,
.elementor-button:hover .elementor-button-icon {
  transform: translateX(5px) !important;
}

/* SECONDARY / GHOST BUTTON
   Apply class 'btn-ghost' in Elementor button CSS classes field */
.btn-ghost .elementor-button,
.elementor-button.btn-ghost {
  background: transparent !important;
  color: #1B3A6B !important;
  border: 2px solid #1B3A6B !important;
  box-shadow: none !important;
}
.btn-ghost .elementor-button::before,
.elementor-button.btn-ghost::before {
  background: #1B3A6B !important;
}
.btn-ghost .elementor-button:hover,
.elementor-button.btn-ghost:hover {
  color: white !important;
}

/* GHOST ON DARK BACKGROUNDS
   Apply class 'btn-ghost-light' in Elementor button CSS classes field */
.btn-ghost-light .elementor-button,
.elementor-button.btn-ghost-light {
  background: white !important;
  color: #1B3A6B !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
}
.btn-ghost-light .elementor-button::before,
.elementor-button.btn-ghost-light::before {
  background: #EFF6FF !important;
}
.btn-ghost-light .elementor-button:hover,
.elementor-button.btn-ghost-light:hover {
  color: #1B3A6B !important;
}

/* =========================================================
   BRIVY IT — Elementor Pro Form Styles
   Conversion-optimized, mobile-friendly, brand-consistent.
   ========================================================= */

/* ── Base field styling ───────────────────────────────────── */
.elementor-form .elementor-field-group .elementor-field {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.elementor-form .elementor-field-group .elementor-field:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

/* Textarea */
.elementor-form .elementor-field-group textarea.elementor-field {
  min-height: 120px;
  resize: vertical;
}

/* Select dropdowns */
.elementor-form .elementor-field-group select.elementor-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825L.35 3.175 1.175 2.35 6 7.175l4.825-4.825.825.825z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Labels */
.elementor-form .elementor-field-group > label,
.elementor-form .elementor-field-group .elementor-field-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #1B3A6B;
  margin-bottom: 6px;
}

/* Required asterisk */
.elementor-form .elementor-mark-required .elementor-field-label::after {
  color: #dc2626;
}

/* ── Submit button — full width, brand styled ─────────────── */
.elementor-form .elementor-field-type-submit .elementor-button {
  width: 100%;
  justify-content: center;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  padding: 16px 32px !important;
  background: #1B3A6B !important;
  border-radius: 8px !important;
  margin-top: 8px;
}

.elementor-form .elementor-field-type-submit .elementor-button:hover {
  background: #2563EB !important;
}

/* ── Success message ──────────────────────────────────────── */
.elementor-message.elementor-message-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
}

/* ── Error message ────────────────────────────────────────── */
.elementor-message.elementor-message-danger,
.elementor-message.elementor-help-inline {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}

/* Field-level validation error */
.elementor-form .elementor-field-group .elementor-field.elementor-error {
  border-color: #dc2626;
}

/* ── File upload drag target ──────────────────────────────── */
.elementor-form .elementor-field-type-upload .elementor-field {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background: #f9fafb;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.elementor-form .elementor-field-type-upload .elementor-field:hover {
  border-color: #2563EB;
  background: #eff6ff;
}

/* ── Checkbox / Radio styling ─────────────────────────────── */
.elementor-form .elementor-field-subgroup {
  gap: 8px;
}

.elementor-form .elementor-field-subgroup label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #374151;
}

/* ── Honeypot field — visually hidden from users ──────────── */
.elementor-form .elementor-field-type-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* ── Hidden reCAPTCHA v3 badge ────────────────────────────── */
/* Google requires attribution text when hiding the badge.
   Add this text near your form: "This site is protected by reCAPTCHA
   and the Google Privacy Policy and Terms of Service apply." */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* ── reCAPTCHA attribution text styling ───────────────────── */
.brivyit-recaptcha-notice {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.brivyit-recaptcha-notice a {
  color: #6b7280;
  text-decoration: underline;
}

/* ── Trust signal text (below forms) ──────────────────────── */
.brivyit-trust-signals {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #6b7280;
}

.brivyit-trust-signals span::before {
  content: '\2713';
  color: #059669;
  font-weight: 700;
  margin-right: 6px;
}

/* ── Mobile: prevent iOS zoom on focus (16px minimum) ─────── */
@media (max-width: 767px) {
  .elementor-form .elementor-field-group .elementor-field,
  .elementor-form .elementor-field-group select.elementor-field,
  .elementor-form .elementor-field-group textarea.elementor-field {
    font-size: 16px;
  }

  /* Stack form columns on mobile */
  .elementor-form .elementor-form-fields-wrapper {
    flex-direction: column;
  }

  .elementor-form .elementor-field-group {
    width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}
