/* Full-width builder pages own their section spacing. Reserve only the
 * out-of-flow desktop header here, not the generic page's additional gap.
 * WordPress already offsets the document for its admin toolbar; adding that
 * offset again would create a second empty strip above the first section.
 * The existing admin-bar observer supplies the measured header height when
 * logged in. Logged-out navigation is 80px plus its 1px bottom border. */
.site-main.dg-elementor-content {
  padding-top: var(--dg-admin-header-height, 81px);
}

/* Keep editable marketing CTAs comfortably tappable without changing desktop
 * proportions or imposing a fixed height on wrapped/translatable labels. */
@media (max-width: 1024px) {
  .dg-elementor-content .elementor-widget-button .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
  }
}

/* Match the theme's header-mode breakpoint, not Elementor's tablet setting:
 * at <=900px the sticky header occupies normal document flow. Elementor's
 * editable first section supplies its own 48/56px internal title spacing. */
@media (max-width: 900px) {
  .site-main.dg-elementor-content {
    padding-top: 0;
  }
}

/* Native Elementor Contact: role-scoped styles preserve editable widgets and
 * submission handlers. No generated Elementor IDs or form replacement. */
/* About uses the native editable icon, heading and button widgets. Match the
 * approved React component tokens without depending on generated widget IDs. */
.dg-site.dg-about-page .dg-elementor-content .e-child:has(> .elementor-widget-icon) {
  border-radius: 26px;
  min-width: 0;
}
.dg-site.dg-about-page .dg-elementor-content .elementor-element.elementor-widget-icon.elementor-view-stacked .elementor-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 22px;
  background: #f0eaff; color: #6c3afd;
}
.dg-site.dg-about-page .dg-elementor-content .elementor-widget-icon .elementor-icon svg {
  width: 20px; height: 20px;
}
.dg-site.dg-about-page .dg-elementor-content .elementor-element.elementor-widget-icon.elementor-view-stacked .elementor-icon svg.e-font-icon-svg { fill: currentColor; }
.dg-site.dg-about-page .dg-elementor-content .elementor-widget-button .elementor-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 16px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, #6c3afd, #b194fe); color: #fff;
  font-size: 14px; font-weight: 500; line-height: 24px;
  box-shadow: 0 18px 40px -22px #6c3afd3d; transition: filter 150ms;
}
.dg-site.dg-about-page .dg-elementor-content .elementor-button:hover { filter: brightness(1.1); transform: none; }
.dg-site.dg-about-page .dg-elementor-content .elementor-button:focus-visible { outline: 2px solid #6c3afd; outline-offset: 3px; }
@media (max-width: 1024px) {
  .dg-site.dg-about-page .dg-elementor-content .elementor-widget-button .elementor-button { min-height: 44px; }
}

.dg-contact-page .dg-elementor-content .e-parent:has(h1) {
  background: linear-gradient(135deg, #fff 0%, #faf8ff 55%, #f0eaff 100%);
  border-bottom: 1px solid #e8e2f2;
}
.dg-contact-page .e-parent:has(h1) .elementor-widget-text-editor { max-width: 672px; }
.dg-contact-page .elementor-widget-text-editor p { margin: 0; }
/* Match the header/footer's 1280px shell minus its two 32px gutters.
 * Elementor consumes --content-width, not --container-max-width here. */
.dg-site.dg-contact-page .dg-elementor-content .elementor .e-parent { --content-width: 1216px; }
.dg-contact-page .e-parent:has(.elementor-widget-form) > .e-con-inner { gap: 24px; }
.dg-contact-page .e-parent:has(.elementor-widget-form) .e-child {
  border-radius: 26px;
  min-width: 0;
  gap: 8px;
}
.dg-contact-page .e-child:has(.elementor-widget-form) { flex: 1.25; }
.dg-contact-page .e-parent:has(.elementor-widget-form) .e-child:not(:has(.elementor-widget-form)) { flex: .75; }
.dg-contact-page .elementor-widget-form { margin-top: 12px; }
.dg-contact-page .elementor-form .elementor-form-fields-wrapper { gap: 16px 0; margin-bottom: 0; }
.dg-contact-page .elementor-form .elementor-field-group { padding-bottom: 0; margin-bottom: 0; }
.dg-site.dg-contact-page .dg-elementor-content .elementor-form .elementor-field-group .elementor-field-label { color: #171126; font-size: 14px; font-weight: 500; padding-bottom: 6px; }
.dg-site.dg-contact-page .dg-elementor-content .elementor-form .elementor-field-group .elementor-field.elementor-field-textual {
  border: 1px solid #e8e2f2; border-radius: 22px; background: #fff;
  min-height: 40px; padding: 9px 14px; font: inherit; font-size: 14px; line-height: 20px; color: #171126;
  box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
}
.dg-site.dg-contact-page .dg-elementor-content .elementor-form .elementor-field-group textarea.elementor-field.elementor-field-textual { min-height: 132px; resize: vertical; box-shadow: none; }
.dg-contact-page .elementor-form .elementor-field-textual:focus { border-color: #6c3afd; outline: 2px solid #6c3afd22; outline-offset: 2px; }
.dg-contact-page .elementor-form .e-form__buttons { justify-content: flex-start; }
.dg-site.dg-contact-page .dg-elementor-content .elementor-form button.elementor-button {
  width: auto; flex: 0 1 auto; min-height: 40px; padding: 8px 16px;
  background: linear-gradient(135deg, #6c3afd, #b194fe); color: #fff;
  border: 0; border-radius: 14px; font-size: 14px; font-weight: 500;
  box-shadow: 0 18px 40px -22px #6c3afd3d; transition: filter 150ms;
}
.dg-contact-page .elementor-form button.elementor-button:hover { filter: brightness(1.1); transform: none; }
.dg-contact-page .elementor-form button.elementor-button:disabled { opacity: .5; cursor: not-allowed; }
.dg-contact-page .elementor-form button .elementor-button-content-wrapper { align-items: center; gap: 8px; }
.dg-contact-page .elementor-form button .elementor-button-content-wrapper::before {
  content: ''; width: 16px; height: 16px; flex: 0 0 16px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4 20-7ZM22 2 11 13'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.dg-contact-page .e-child a[href^='mailto:'],
.dg-contact-page .e-child a[href^='https://wa.me/'] {
  display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
  margin-top: 12px; padding: 14px; min-height: 44px; border-radius: 22px;
  color: #171126; background: #f0eaff8c; font-size: 14px; font-weight: 500;
  text-align: left; overflow-wrap: anywhere; border: 1px solid transparent;
}
.dg-site.dg-contact-page .dg-elementor-content .e-child a.elementor-button[href^='https://wa.me/'] { background: #fff; color: #171126; border: 1px solid #25d36640; border-radius: 22px; margin-top: 4px; font-weight: 500; justify-content: flex-start; }
.dg-contact-page .e-child a[href^='https://wa.me/']:hover { background: #25d3660f; }
.dg-contact-page .e-child a[href^='mailto:']:hover { background: #f0eaff; }
.dg-contact-page .e-child a[href^='mailto:']::before,
.dg-contact-page .e-child a[href^='https://wa.me/']::before {
  content: ''; width: 16px; height: 16px; flex: 0 0 16px; background: #6c3afd;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.dg-contact-page .e-child a[href^='https://wa.me/']::before {
  background: #20b858;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.4 8.4 0 0 1 3.8-.9h.5a8.5 8.5 0 0 1 8 8v.5Z'/%3E%3C/svg%3E");
}
.dg-contact-page .e-child a:focus-visible, .dg-contact-page button:focus-visible { outline: 2px solid #6c3afd; outline-offset: 3px; }
.dg-contact-page .e-child:not(:has(form)) > .elementor-widget-text-editor:last-child { margin-top: 12px; padding-top: 16px; border-top: 1px solid #e8e2f2; }
@media (max-width: 1023px) {
  .dg-contact-page .e-parent:has(.elementor-widget-form) > .e-con-inner { flex-direction: column; }
  .dg-contact-page .e-parent:has(.elementor-widget-form) .e-child { width: 100%; flex: auto; }
}
@media (max-width: 767px) {
  .dg-site.dg-contact-page .dg-elementor-content .elementor-form .elementor-field-group .elementor-field.elementor-field-textual { min-height: 44px; font-size: 16px; }
  .dg-site.dg-contact-page .dg-elementor-content .elementor-form button.elementor-button { min-height: 44px; }
}
