/**
 * Elementor Overrides for Route Deliveries
 * Ensures Elementor widgets inherit and extend theme styles
 */

/* ── Full-width Elementor content ── */
.elementor-full-width-content {
  width: 100%;
  overflow: hidden;
}

.elementor-full-width-content .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1200px;
}

/* ── Elementor Buttons — inherit Route style ── */
.elementor-widget-button .elementor-button {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.elementor-widget-button .elementor-button:hover {
  transform: translateY(-2px);
}

/* ── Elementor Headings ── */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-heading);
  color: var(--route-dark);
}

/* ── Elementor Text Editor ── */
.elementor-widget-text-editor {
  font-family: var(--font-body);
  color: var(--route-text-light);
  line-height: 1.7;
}

/* ── Elementor Icon Box ── */
.elementor-widget-icon-box .elementor-icon {
  background: linear-gradient(135deg, rgba(0,201,219,0.1) 0%, rgba(0,119,200,0.1) 100%);
  border-radius: 12px;
}

.elementor-widget-icon-box .elementor-icon i,
.elementor-widget-icon-box .elementor-icon svg {
  color: var(--route-cyan);
  fill: var(--route-cyan);
}

/* ── Elementor Counter ── */
.elementor-widget-counter .elementor-counter-number-wrapper {
  font-family: var(--font-heading);
  font-weight: 700;
  background: var(--route-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Elementor Testimonial ── */
.elementor-widget-testimonial .elementor-testimonial-content {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--route-text-light);
}

/* ── Elementor Section Styling Helpers ── */
.route-section-dark {
  background: var(--route-dark) !important;
}

.route-section-dark h2,
.route-section-dark h3,
.route-section-dark h4 {
  color: var(--route-white) !important;
}

.route-section-dark p {
  color: rgba(255,255,255,0.7) !important;
}

.route-section-gradient {
  background: var(--route-gradient) !important;
}

.route-section-gradient h2,
.route-section-gradient p {
  color: var(--route-white) !important;
}

.route-section-light {
  background: var(--route-light-grey) !important;
}

/* ── Elementor Editor — Section Labels ── */
.elementor-editor-active .route-editable::before {
  content: attr(data-section-label);
  position: absolute;
  top: 0;
  left: 0;
  background: var(--route-cyan);
  color: white;
  padding: 4px 12px;
  font-size: 11px;
  font-family: var(--font-heading);
  z-index: 10;
  border-radius: 0 0 var(--radius-sm) 0;
}

/* ── Form Styling for Elementor Forms ── */
.elementor-widget-form .elementor-field-group .elementor-field {
  padding: 14px 16px;
  border: 1px solid var(--route-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.elementor-widget-form .elementor-field-group .elementor-field:focus {
  border-color: var(--route-cyan);
  outline: none;
}

.elementor-widget-form .elementor-button[type="submit"] {
  background: var(--route-gradient) !important;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ── Navigation Widget Overrides ── */
.elementor-nav-menu--main .elementor-item {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* ── Spacing Utility Classes for Elementor ── */
.route-pt-0 { padding-top: 0 !important; }
.route-pb-0 { padding-bottom: 0 !important; }
.route-mt-0 { margin-top: 0 !important; }
.route-mb-0 { margin-bottom: 0 !important; }
